Messages in this thread |  | | Date | Mon, 8 Jun 2009 00:32:03 +0200 | Subject | Re: [PATCH v4] gpio: driver for PrimeCell PL061 GPIO controller | From | Linus Walleij <> |
| |
2009/6/7 Linus Walleij <linus.ml.walleij@gmail.com>:
>> + chip->base = ioremap(dev->res.start, PL061_REG_SIZE); > > Just do this: > chip->base = ioremap(dev->res.start, resource_size(dev->res));
And that should read: chip->base = ioremap(dev->res.start, resource_size(&dev->res));
Sadly my in-brain C parser is working badly at this hour.
Linus Walleij -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
|  |