From 7c54be14a084c7a45b596e22b20cc93c5aa38d59 Mon Sep 17 00:00:00 2001 From: David Cohen Date: Tue, 11 Dec 2007 18:49:23 -0400 Subject: [PATCH] platform_device for arm7: fixing the read and code cleanups. Signed-off-by: David Cohen Acked-by: Felipe Balbi --- arch/arm7/common/platform_device.c | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/arch/arm7/common/platform_device.c b/arch/arm7/common/platform_device.c index f7626a3..a2b1a47 100644 --- a/arch/arm7/common/platform_device.c +++ b/arch/arm7/common/platform_device.c @@ -1,6 +1,7 @@ #include #include #include +#include #include static void platform_writeb(struct device *dev, @@ -28,22 +29,22 @@ static unsigned char platform_readb(struct device *dev, unsigned long addr) static unsigned int platform_readw(struct device *dev, unsigned long addr) { - return __raw_readb(addr); + return __raw_readw(addr); } static unsigned long platform_readl(struct device *dev, unsigned long addr) { - return __raw_readb(addr); + return __raw_readl(addr); } static struct bus_type platform_bus = { - .name = "platform", - .writeb = platform_writeb, - .writew = platform_writew, - .writel = platform_writel, - .readb = platform_readb, - .readw = platform_readw, - .readl = platform_readl, + .type = BUS_TYPE_PLATFORM, + .writeb = platform_writeb, + .writew = platform_writew, + .writel = platform_writel, + .readb = platform_readb, + .readw = platform_readw, + .readl = platform_readl, }; int register_platform_device(struct device *dev) -- 2.11.4.GIT