[Tinyx-devel] =?utf-8?q?_Re=3A__=5BPATCH=5D_platform=5Fdevice_for?= =?utf-8?q?_arm7=3A_fixing_the_r
Status: Planning
Brought to you by:
davidcohen
From: Felipe B. <me...@fe...> - 2007-12-11 23:17:04
|
On Tue, 11 Dec 2007 19:08:20 -0400, David Cohen <da...@gm...> wrote: > Signed-off-by: David Cohen <da...@gm...> Acked-by: Felipe Balbi <me...@fe...> > --- > arch/arm7/common/platform_device.c | 19 ++++++++++--------- > 1 files 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 <tinyx/device.h> > #include <tinyx/kernel.h> > #include <asm/io.h> > +#include <asm/device.h> > #include <asm/platform_device.h> > > 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) > -- > 1.5.3.5 > > > ------------------------------------------------------------------------- > SF.Net email is sponsored by: > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://sourceforge.net/services/buy/index.php > _______________________________________________ > Tinyx-devel mailing list > Tin...@li... > https://lists.sourceforge.net/lists/listinfo/tinyx-devel -- Best Regards, Felipe Balbi http://felipebalbi.com me...@fe... |