OSDN Git Service

w1: omap-hdq: don't hardcode resource size
authorFelipe Balbi <balbi@ti.com>
Wed, 25 Jul 2012 12:05:28 +0000 (15:05 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 16 Aug 2012 16:58:43 +0000 (09:58 -0700)
commitbe6ec64a1bb04d6c54f77e8e445e83ea8f1e17e1
treebeb87edebca2228c0f052b9f621fc93f97fe7fe9
parent8c3db42fea94cc360446602d3d1a4f50ae98af16
w1: omap-hdq: don't hardcode resource size

we have the helpful resource_size() macro to
calculate the size of the memory resource for
us, let's use it.

Signed-off-by: Felipe Balbi <balbi@ti.com>
Acked-by: Evgeniy Polyakov <zbr@ioremap.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/w1/masters/omap_hdq.c