diff options
author | Shawn Guo <shawn.guo@linaro.org> | 2011-06-06 17:37:58 +0200 |
---|---|---|
committer | Grant Likely <grant.likely@secretlab.ca> | 2011-06-06 18:01:19 +0200 |
commit | 8d7cf8370d5fb75a3265408dceb1d6173eebfafd (patch) | |
tree | c14bbe3f058dc65e0f9e3dcd7dc0c8e66bbf8ce3 /arch/arm/mach-mxs/include/mach/devices-common.h | |
parent | gpio/mxs: Move Freescale mxs gpio driver to drivers/gpio (diff) | |
download | linux-8d7cf8370d5fb75a3265408dceb1d6173eebfafd.tar.xz linux-8d7cf8370d5fb75a3265408dceb1d6173eebfafd.zip |
gpio/mxs: Change gpio-mxs into an upstanding gpio driver
The patch makes necessary changes on gpio-mxs as below to turn it
into an upstanding gpio driver.
* Clean up the gpio port definition stuff
* Use readl/writel to replace mach-specific accessors
__raw_readl/__raw_writel
* Change mxs_gpio_init into mxs_gpio_probe function
And it then migrates mach-mxs to the updated driver by adding
corresponding platform devices.
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Diffstat (limited to 'arch/arm/mach-mxs/include/mach/devices-common.h')
-rw-r--r-- | arch/arm/mach-mxs/include/mach/devices-common.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/mach-mxs/include/mach/devices-common.h b/arch/arm/mach-mxs/include/mach/devices-common.h index 7a37469ed5bf..812d7a813a78 100644 --- a/arch/arm/mach-mxs/include/mach/devices-common.h +++ b/arch/arm/mach-mxs/include/mach/devices-common.h @@ -11,6 +11,8 @@ #include <linux/init.h> #include <linux/amba/bus.h> +extern struct device mxs_apbh_bus; + struct platform_device *mxs_add_platform_device_dmamask( const char *name, int id, const struct resource *res, unsigned int num_resources, |