The patch titled gpio-driver-for-primecell-pl061-gpio-controller-v5 has been removed from the -mm tree. Its filename was gpio-driver-for-primecell-pl061-gpio-controller-v5.patch This patch was dropped because it was folded into gpio-driver-for-primecell-pl061-gpio-controller.patch The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/ ------------------------------------------------------ Subject: gpio-driver-for-primecell-pl061-gpio-controller-v5 From: Baruch Siach <baruch@xxxxxxxxxx> Changes in v5: - Use resource_size() as suggested by Linus Walleij - Add a comment about the list member of pl061_gpio Cc: David Brownell <david-b@xxxxxxxxxxx> Cc: Russell King <rmk@xxxxxxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- drivers/gpio/pl061.c | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff -puN drivers/gpio/pl061.c~gpio-driver-for-primecell-pl061-gpio-controller-v5 drivers/gpio/pl061.c --- a/drivers/gpio/pl061.c~gpio-driver-for-primecell-pl061-gpio-controller-v5 +++ a/drivers/gpio/pl061.c @@ -36,9 +36,12 @@ #define PL061_GPIO_NR 8 -#define PL061_REG_SIZE (4*1024) - struct pl061_gpio { + /* We use a list of pl061_gpio structs for each trigger IRQ in the main + * interrupts controller of the system. We need this to support systems + * in which more that one PL061s are connected to the same IRQ. The ISR + * interates through this list to find the source of the interrupt. + */ struct list_head list; /* Each of the two spinlocks protects a different set of hardware @@ -238,12 +241,13 @@ static int __init pl061_probe(struct amb if (chip == NULL) return -ENOMEM; - if (!request_mem_region(dev->res.start, PL061_REG_SIZE, "pl061")) { + if (!request_mem_region(dev->res.start, + resource_size(&dev->res), "pl061")) { ret = -EBUSY; goto free_mem; } - chip->base = ioremap(dev->res.start, PL061_REG_SIZE); + chip->base = ioremap(dev->res.start, resource_size(&dev->res)); if (chip->base == NULL) { ret = -ENOMEM; goto release_region; @@ -308,7 +312,7 @@ static int __init pl061_probe(struct amb iounmap: iounmap(chip->base); release_region: - release_mem_region(dev->res.start, PL061_REG_SIZE); + release_mem_region(dev->res.start, resource_size(&dev->res)); free_mem: kfree(chip); _ Patches currently in -mm which might be from baruch@xxxxxxxxxx are origin.patch gpio-driver-for-primecell-pl061-gpio-controller.patch gpio-driver-for-primecell-pl061-gpio-controller-v5.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html