From: Tony Lindgren Date: Thu, 13 Sep 2012 01:05:19 +0000 (-0700) Subject: Merge tags 'omap-devel-gpmc-fixed-for-v3.7' and 'cleanup-omap-tags-for-v3.7' into... X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=a1e01703bacbadd22eb4aaca0bbba59bcba7d3b3;p=~shefty%2Frdma-dev.git Merge tags 'omap-devel-gpmc-fixed-for-v3.7' and 'cleanup-omap-tags-for-v3.7' into cleanup-sparseirq Changes for GPMC (General Purpose Memory Controller) that take it closer for being just a regular device driver. Remove the ancient omap specific atags that are no longer needed. At some point we were planning to pass the bootloader information with custom atags that did not work out too well. There's no need for these any longer as the kernel has been booting fine without them for quite some time. And Now we have device tree support that can be used instead. --- a1e01703bacbadd22eb4aaca0bbba59bcba7d3b3 diff --cc arch/arm/mach-omap2/gpmc-nand.c index 386dec8d235,045596a3e89,513ed9e2db5..96fcc641aab --- a/arch/arm/mach-omap2/gpmc-nand.c +++ b/arch/arm/mach-omap2/gpmc-nand.c @@@@ -18,11 -18,19 -18,10 +18,18 @@@@ #include #include -- #include #include - -static struct resource gpmc_nand_resource = { - - .flags = IORESOURCE_MEM, + +static struct resource gpmc_nand_resource[] = { + + { + + .flags = IORESOURCE_MEM, + + }, + + { + + .flags = IORESOURCE_IRQ, + + }, + + { + + .flags = IORESOURCE_IRQ, + + }, }; static struct platform_device gpmc_nand_device = { diff --cc arch/arm/mach-omap2/gpmc-onenand.c index a0fa9bb2bda,71d7c07dd35,c5f005e088a..b12a39e223f --- a/arch/arm/mach-omap2/gpmc-onenand.c +++ b/arch/arm/mach-omap2/gpmc-onenand.c @@@@ -20,11 -20,17 -20,10 +20,16 @@@@ #include #include -- #include #include + +#define ONENAND_IO_SIZE SZ_128K + + static struct omap_onenand_platform_data *gpmc_onenand_data; + +static struct resource gpmc_onenand_resource = { + + .flags = IORESOURCE_MEM, + +}; + + static struct platform_device gpmc_onenand_device = { .name = "omap2-onenand", .id = -1, diff --cc drivers/mtd/onenand/omap2.c index 398a8278384,3ff893d4e6c,10ed992aaab..108ab1ab660 --- a/drivers/mtd/onenand/omap2.c +++ b/drivers/mtd/onenand/omap2.c @@@@ -44,11 -44,10 -44,9 +44,8 @@@@ #include -- #include -- #define DRIVER_NAME "omap2-onenand" - -#define ONENAND_IO_SIZE SZ_128K #define ONENAND_BUFRAM_SIZE (1024 * 5) struct omap2_onenand {