mem: replace DEVFS_RDWR by IORESOURCE_MEM_WRITEABLE
we keep struct memory_platform_data for now on we will switch off the memories resources to struct resource Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
This commit is contained in:
parent
d5b96bdca9
commit
88618eb5f1
|
@ -37,7 +37,7 @@
|
|||
|
||||
static struct memory_platform_data ram_pdata = {
|
||||
.name = "ram0",
|
||||
.flags = DEVFS_RDWR,
|
||||
.flags = IORESOURCE_MEM_WRITEABLE,
|
||||
};
|
||||
|
||||
static struct device_d sdram_dev = {
|
||||
|
|
|
@ -40,7 +40,7 @@
|
|||
|
||||
static struct memory_platform_data ram_pdata = {
|
||||
.name = "ram0",
|
||||
.flags = DEVFS_RDWR,
|
||||
.flags = IORESOURCE_MEM_WRITEABLE,
|
||||
};
|
||||
|
||||
static struct device_d sdram_dev = {
|
||||
|
|
|
@ -36,7 +36,7 @@
|
|||
|
||||
static struct memory_platform_data ram_pdata = {
|
||||
.name = "ram0",
|
||||
.flags = DEVFS_RDWR,
|
||||
.flags = IORESOURCE_MEM_WRITEABLE,
|
||||
};
|
||||
|
||||
static struct device_d sdram_dev = {
|
||||
|
|
|
@ -47,7 +47,7 @@ static struct device_d cfi_dev = {
|
|||
|
||||
static struct memory_platform_data ram_dev_pdata0 = {
|
||||
.name = "ram0",
|
||||
.flags = DEVFS_RDWR,
|
||||
.flags = IORESOURCE_MEM_WRITEABLE,
|
||||
};
|
||||
|
||||
static struct device_d sdram0_dev = {
|
||||
|
@ -61,7 +61,7 @@ static struct device_d sdram0_dev = {
|
|||
#if (CONFIG_EP93XX_SDRAM_NUM_BANKS >= 2)
|
||||
static struct memory_platform_data ram_dev_pdata1 = {
|
||||
.name = "ram1",
|
||||
.flags = DEVFS_RDWR,
|
||||
.flags = IORESOURCE_MEM_WRITEABLE,
|
||||
};
|
||||
|
||||
static struct device_d sdram1_dev = {
|
||||
|
@ -76,7 +76,7 @@ static struct device_d sdram1_dev = {
|
|||
#if (CONFIG_EP93XX_SDRAM_NUM_BANKS >= 3)
|
||||
static struct memory_platform_data ram_dev_pdata2 = {
|
||||
.name = "ram2",
|
||||
.flags = DEVFS_RDWR,
|
||||
.flags = IORESOURCE_MEM_WRITEABLE,
|
||||
};
|
||||
|
||||
static struct device_d sdram2_dev = {
|
||||
|
@ -91,7 +91,7 @@ static struct device_d sdram2_dev = {
|
|||
#if (CONFIG_EP93XX_SDRAM_NUM_BANKS == 4)
|
||||
static struct memory_platform_data ram_dev_pdata3 = {
|
||||
.name = "ram3",
|
||||
.flags = DEVFS_RDWR,
|
||||
.flags = IORESOURCE_MEM_WRITEABLE,
|
||||
};
|
||||
|
||||
static struct device_d sdram3_dev = {
|
||||
|
|
|
@ -92,7 +92,7 @@ static struct fec_platform_data fec_info = {
|
|||
|
||||
static struct memory_platform_data sdram_pdata = {
|
||||
.name = "ram0",
|
||||
.flags = DEVFS_RDWR,
|
||||
.flags = IORESOURCE_MEM_WRITEABLE,
|
||||
};
|
||||
|
||||
static struct device_d sdram0_dev = {
|
||||
|
|
|
@ -65,7 +65,7 @@ static struct device_d cfi_dev1 = {
|
|||
|
||||
static struct memory_platform_data ram_pdata = {
|
||||
.name = "ram0",
|
||||
.flags = DEVFS_RDWR,
|
||||
.flags = IORESOURCE_MEM_WRITEABLE,
|
||||
};
|
||||
|
||||
#if defined CONFIG_EUKREA_CPUIMX27_SDRAM_256MB
|
||||
|
|
|
@ -63,7 +63,7 @@ static struct fec_platform_data fec_info = {
|
|||
|
||||
static struct memory_platform_data sdram_pdata = {
|
||||
.name = "ram0",
|
||||
.flags = DEVFS_RDWR,
|
||||
.flags = IORESOURCE_MEM_WRITEABLE,
|
||||
};
|
||||
|
||||
static struct device_d sdram_dev = {
|
||||
|
|
|
@ -44,7 +44,7 @@
|
|||
|
||||
static struct memory_platform_data ram_pdata = {
|
||||
.name = "ram0",
|
||||
.flags = DEVFS_RDWR,
|
||||
.flags = IORESOURCE_MEM_WRITEABLE,
|
||||
};
|
||||
|
||||
static struct device_d sdram_dev = {
|
||||
|
|
|
@ -27,7 +27,7 @@
|
|||
|
||||
static struct memory_platform_data ram_pdata = {
|
||||
.name = "ram0",
|
||||
.flags = DEVFS_RDWR,
|
||||
.flags = IORESOURCE_MEM_WRITEABLE,
|
||||
};
|
||||
|
||||
static struct device_d sdram_dev = {
|
||||
|
|
|
@ -115,7 +115,7 @@ static struct fec_platform_data fec_info = {
|
|||
|
||||
static struct memory_platform_data sdram_pdata = {
|
||||
.name = "ram0",
|
||||
.flags = DEVFS_RDWR,
|
||||
.flags = IORESOURCE_MEM_WRITEABLE,
|
||||
};
|
||||
|
||||
static struct device_d sdram0_dev = {
|
||||
|
@ -134,7 +134,7 @@ static struct device_d sdram0_dev = {
|
|||
|
||||
static struct memory_platform_data sram_pdata = {
|
||||
.name = "sram0",
|
||||
.flags = DEVFS_RDWR,
|
||||
.flags = IORESOURCE_MEM_WRITEABLE,
|
||||
};
|
||||
|
||||
static struct device_d sram0_dev = {
|
||||
|
|
|
@ -73,7 +73,7 @@ static struct fec_platform_data fec_info = {
|
|||
|
||||
static struct memory_platform_data sdram_pdata = {
|
||||
.name = "ram0",
|
||||
.flags = DEVFS_RDWR,
|
||||
.flags = IORESOURCE_MEM_WRITEABLE,
|
||||
};
|
||||
|
||||
static struct device_d sdram_dev = {
|
||||
|
|
|
@ -43,7 +43,7 @@
|
|||
|
||||
static struct memory_platform_data ram_pdata = {
|
||||
.name = "ram0",
|
||||
.flags = DEVFS_RDWR,
|
||||
.flags = IORESOURCE_MEM_WRITEABLE,
|
||||
};
|
||||
|
||||
static struct device_d sdram_dev = {
|
||||
|
|
|
@ -57,7 +57,7 @@ static struct device_d fec_dev = {
|
|||
|
||||
static struct memory_platform_data ram_pdata = {
|
||||
.name = "ram0",
|
||||
.flags = DEVFS_RDWR,
|
||||
.flags = IORESOURCE_MEM_WRITEABLE,
|
||||
};
|
||||
|
||||
static struct device_d sdram0_dev = {
|
||||
|
|
|
@ -56,7 +56,7 @@
|
|||
|
||||
static struct memory_platform_data ram_pdata = {
|
||||
.name = "ram0",
|
||||
.flags = DEVFS_RDWR,
|
||||
.flags = IORESOURCE_MEM_WRITEABLE,
|
||||
};
|
||||
|
||||
static struct device_d sdram_dev = {
|
||||
|
|
|
@ -50,7 +50,7 @@ static struct device_d cfi_dev = {
|
|||
|
||||
static struct memory_platform_data ram_pdata = {
|
||||
.name = "ram0",
|
||||
.flags = DEVFS_RDWR,
|
||||
.flags = IORESOURCE_MEM_WRITEABLE,
|
||||
};
|
||||
|
||||
static struct device_d sdram_dev = {
|
||||
|
|
|
@ -43,7 +43,7 @@ static struct device_d cfi_dev = {
|
|||
|
||||
static struct memory_platform_data ram_pdata = {
|
||||
.name = "ram0",
|
||||
.flags = DEVFS_RDWR,
|
||||
.flags = IORESOURCE_MEM_WRITEABLE,
|
||||
};
|
||||
|
||||
static struct device_d sdram_dev = {
|
||||
|
|
|
@ -47,7 +47,7 @@ static struct fec_platform_data fec_info = {
|
|||
|
||||
static struct memory_platform_data sdram0_pdata = {
|
||||
.name = "ram0",
|
||||
.flags = DEVFS_RDWR,
|
||||
.flags = IORESOURCE_MEM_WRITEABLE,
|
||||
};
|
||||
|
||||
static struct device_d sdram0_dev = {
|
||||
|
@ -60,7 +60,7 @@ static struct device_d sdram0_dev = {
|
|||
|
||||
static struct memory_platform_data sdram1_pdata = {
|
||||
.name = "ram1",
|
||||
.flags = DEVFS_RDWR,
|
||||
.flags = IORESOURCE_MEM_WRITEABLE,
|
||||
};
|
||||
|
||||
static struct device_d sdram1_dev = {
|
||||
|
@ -73,7 +73,7 @@ static struct device_d sdram1_dev = {
|
|||
|
||||
static struct memory_platform_data sram_pdata = {
|
||||
.name = "sram0",
|
||||
.flags = DEVFS_RDWR,
|
||||
.flags = IORESOURCE_MEM_WRITEABLE,
|
||||
};
|
||||
|
||||
static struct device_d sram0_dev = {
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
|
||||
static struct memory_platform_data ram_pdata = {
|
||||
.name = "ram0",
|
||||
.flags = DEVFS_RDWR,
|
||||
.flags = IORESOURCE_MEM_WRITEABLE,
|
||||
};
|
||||
|
||||
static struct device_d sdram_dev = {
|
||||
|
|
|
@ -46,7 +46,7 @@
|
|||
|
||||
static struct memory_platform_data ram_pdata = {
|
||||
.name = "ram0",
|
||||
.flags = DEVFS_RDWR,
|
||||
.flags = IORESOURCE_MEM_WRITEABLE,
|
||||
};
|
||||
|
||||
static struct device_d sdram_dev = {
|
||||
|
|
|
@ -39,7 +39,7 @@ static struct device_d cfi_dev = {
|
|||
|
||||
static struct memory_platform_data ram_pdata = {
|
||||
.name = "ram0",
|
||||
.flags = DEVFS_RDWR,
|
||||
.flags = IORESOURCE_MEM_WRITEABLE,
|
||||
};
|
||||
|
||||
static struct device_d sdram_dev = {
|
||||
|
|
|
@ -266,7 +266,7 @@ console_initcall(beagle_console_init);
|
|||
|
||||
static struct memory_platform_data sram_pdata = {
|
||||
.name = "ram0",
|
||||
.flags = DEVFS_RDWR,
|
||||
.flags = IORESOURCE_MEM_WRITEABLE,
|
||||
};
|
||||
|
||||
static struct device_d sdram_dev = {
|
||||
|
|
|
@ -243,7 +243,7 @@ console_initcall(omap3evm_init_console);
|
|||
|
||||
static struct memory_platform_data sram_pdata = {
|
||||
.name = "ram0",
|
||||
.flags = DEVFS_RDWR,
|
||||
.flags = IORESOURCE_MEM_WRITEABLE,
|
||||
};
|
||||
|
||||
static struct device_d sdram_dev = {
|
||||
|
|
|
@ -643,7 +643,7 @@ static int sdp3430_flash_init(void)
|
|||
|
||||
static struct memory_platform_data ram_pdata = {
|
||||
.name = "ram0",
|
||||
.flags = DEVFS_RDWR,
|
||||
.flags = IORESOURCE_MEM_WRITEABLE,
|
||||
};
|
||||
|
||||
struct device_d sdram_dev = {
|
||||
|
|
|
@ -54,7 +54,7 @@ console_initcall(panda_console_init);
|
|||
|
||||
static struct memory_platform_data sram_pdata = {
|
||||
.name = "ram0",
|
||||
.flags = DEVFS_RDWR,
|
||||
.flags = IORESOURCE_MEM_WRITEABLE,
|
||||
};
|
||||
|
||||
static struct device_d sdram_dev = {
|
||||
|
|
|
@ -56,7 +56,7 @@ static struct device_d cfi_dev = {
|
|||
*/
|
||||
static struct memory_platform_data sram_dev_pdata0 = {
|
||||
.name = "sram0",
|
||||
.flags = DEVFS_RDWR,
|
||||
.flags = IORESOURCE_MEM_WRITEABLE,
|
||||
};
|
||||
|
||||
static struct device_d sram_dev = {
|
||||
|
@ -87,7 +87,7 @@ static struct device_d network_dev = {
|
|||
|
||||
static struct memory_platform_data ram_dev_pdata0 = {
|
||||
.name = "ram0",
|
||||
.flags = DEVFS_RDWR,
|
||||
.flags = IORESOURCE_MEM_WRITEABLE,
|
||||
};
|
||||
|
||||
static struct device_d sdram0_dev = {
|
||||
|
@ -108,7 +108,7 @@ static struct device_d sdram0_dev = {
|
|||
|
||||
static struct memory_platform_data ram_dev_pdata1 = {
|
||||
.name = "ram1",
|
||||
.flags = DEVFS_RDWR,
|
||||
.flags = IORESOURCE_MEM_WRITEABLE,
|
||||
};
|
||||
|
||||
static struct device_d sdram1_dev = {
|
||||
|
|
|
@ -56,7 +56,7 @@ static struct device_d cfi_dev = {
|
|||
|
||||
static struct memory_platform_data ram_pdata = {
|
||||
.name = "ram0",
|
||||
.flags = DEVFS_RDWR,
|
||||
.flags = IORESOURCE_MEM_WRITEABLE,
|
||||
};
|
||||
|
||||
static struct device_d sdram_dev = {
|
||||
|
@ -69,7 +69,7 @@ static struct device_d sdram_dev = {
|
|||
|
||||
static struct memory_platform_data sram_pdata = {
|
||||
.name = "sram0",
|
||||
.flags = DEVFS_RDWR,
|
||||
.flags = IORESOURCE_MEM_WRITEABLE,
|
||||
};
|
||||
|
||||
static struct device_d sram_dev = {
|
||||
|
|
|
@ -63,7 +63,7 @@ static struct fec_platform_data fec_info = {
|
|||
|
||||
static struct memory_platform_data ram_pdata = {
|
||||
.name = "ram0",
|
||||
.flags = DEVFS_RDWR,
|
||||
.flags = IORESOURCE_MEM_WRITEABLE,
|
||||
};
|
||||
|
||||
static struct device_d sdram0_dev = {
|
||||
|
|
|
@ -65,7 +65,7 @@ console_initcall(pcm049_console_init);
|
|||
|
||||
static struct memory_platform_data sram_pdata = {
|
||||
.name = "sram0",
|
||||
.flags = DEVFS_RDWR,
|
||||
.flags = IORESOURCE_MEM_WRITEABLE,
|
||||
};
|
||||
|
||||
static struct device_d sram_dev = {
|
||||
|
@ -78,7 +78,7 @@ static struct device_d sram_dev = {
|
|||
|
||||
static struct memory_platform_data sdram_pdata = {
|
||||
.name = "ram0",
|
||||
.flags = DEVFS_RDWR,
|
||||
.flags = IORESOURCE_MEM_WRITEABLE,
|
||||
};
|
||||
|
||||
static struct device_d sdram_dev = {
|
||||
|
|
|
@ -43,7 +43,7 @@
|
|||
|
||||
static struct memory_platform_data ram_pdata = {
|
||||
.name = "ram0",
|
||||
.flags = DEVFS_RDWR,
|
||||
.flags = IORESOURCE_MEM_WRITEABLE,
|
||||
};
|
||||
|
||||
static struct device_d sdram_dev = {
|
||||
|
|
|
@ -43,7 +43,7 @@ static struct device_d cfi_dev = {
|
|||
|
||||
static struct memory_platform_data sdram_pdata = {
|
||||
.name = "ram0",
|
||||
.flags = DEVFS_RDWR,
|
||||
.flags = IORESOURCE_MEM_WRITEABLE,
|
||||
};
|
||||
|
||||
static struct device_d sdram_dev = {
|
||||
|
|
|
@ -28,7 +28,7 @@ static struct resource sdram_dev_resources[] = {
|
|||
|
||||
static struct memory_platform_data ram_pdata = {
|
||||
.name = "ram0",
|
||||
.flags = DEVFS_RDWR,
|
||||
.flags = IORESOURCE_MEM_WRITEABLE,
|
||||
};
|
||||
|
||||
static struct device_d sdram_dev = {
|
||||
|
|
|
@ -29,7 +29,7 @@ static struct resource sdram_dev_resources[] = {
|
|||
|
||||
static struct memory_platform_data sram_pdata = {
|
||||
.name = "sram0",
|
||||
.flags = DEVFS_RDWR,
|
||||
.flags = IORESOURCE_MEM_WRITEABLE,
|
||||
};
|
||||
|
||||
static struct device_d sdram_dev = {
|
||||
|
|
|
@ -29,7 +29,7 @@ static struct resource sdram_dev_resources[] = {
|
|||
|
||||
static struct memory_platform_data ram_pdata = {
|
||||
.name = "ram0",
|
||||
.flags = DEVFS_RDWR,
|
||||
.flags = IORESOURCE_MEM_WRITEABLE,
|
||||
};
|
||||
|
||||
static struct device_d sdram_dev = {
|
||||
|
|
|
@ -29,7 +29,7 @@ static struct resource sdram_dev_resources[] = {
|
|||
|
||||
static struct memory_platform_data ram_pdata = {
|
||||
.name = "ram0",
|
||||
.flags = DEVFS_RDWR,
|
||||
.flags = IORESOURCE_MEM_WRITEABLE,
|
||||
};
|
||||
|
||||
static struct device_d sdram_dev = {
|
||||
|
|
|
@ -29,7 +29,7 @@ static struct resource sdram_dev_resources[] = {
|
|||
|
||||
static struct memory_platform_data ram_pdata = {
|
||||
.name = "ram0",
|
||||
.flags = DEVFS_RDWR,
|
||||
.flags = IORESOURCE_MEM_WRITEABLE,
|
||||
};
|
||||
|
||||
static struct device_d sdram_dev = {
|
||||
|
|
|
@ -33,7 +33,7 @@ static struct clk st8815_clk_48 = {
|
|||
|
||||
static struct memory_platform_data ram_pdata = {
|
||||
.name = "ram0",
|
||||
.flags = DEVFS_RDWR,
|
||||
.flags = IORESOURCE_MEM_WRITEABLE,
|
||||
};
|
||||
|
||||
static struct resource sdram_dev_resources[] = {
|
||||
|
|
|
@ -44,7 +44,7 @@
|
|||
|
||||
static struct memory_platform_data ram_pdata = {
|
||||
.name = "ram0",
|
||||
.flags = DEVFS_RDWR,
|
||||
.flags = IORESOURCE_MEM_WRITEABLE,
|
||||
};
|
||||
|
||||
static struct device_d sdram_dev = {
|
||||
|
|
|
@ -14,7 +14,7 @@ static struct device_d cfi_dev = {
|
|||
|
||||
static struct memory_platform_data ram_pdata = {
|
||||
.name = "ram0",
|
||||
.flags = DEVFS_RDWR,
|
||||
.flags = IORESOURCE_MEM_WRITEABLE,
|
||||
};
|
||||
|
||||
static struct device_d sdram_dev = {
|
||||
|
|
|
@ -23,7 +23,7 @@ static struct device_d mac_dev = {
|
|||
|
||||
static struct memory_platform_data ram_pdata = {
|
||||
.name = "ram0",
|
||||
.flags = DEVFS_RDWR,
|
||||
.flags = IORESOURCE_MEM_WRITEABLE,
|
||||
};
|
||||
|
||||
static struct device_d ram_dev = {
|
||||
|
|
|
@ -46,7 +46,7 @@ struct device_d cfi_dev = {
|
|||
|
||||
static struct memory_platform_data ram_pdata = {
|
||||
.name = "ram0",
|
||||
.flags = DEVFS_RDWR,
|
||||
.flags = IORESOURCE_MEM_WRITEABLE,
|
||||
};
|
||||
|
||||
struct device_d sdram_dev = {
|
||||
|
|
|
@ -32,7 +32,7 @@
|
|||
|
||||
static struct memory_platform_data ram_pdata = {
|
||||
.name = "ram0",
|
||||
.flags = DEVFS_RDWR,
|
||||
.flags = IORESOURCE_MEM_WRITEABLE,
|
||||
};
|
||||
|
||||
static struct device_d sdram_dev = {
|
||||
|
|
|
@ -612,7 +612,7 @@ static struct driver_d mem_drv = {
|
|||
|
||||
static struct memory_platform_data mem_dev_pdata = {
|
||||
.name = "mem",
|
||||
.flags = DEVFS_RDWR,
|
||||
.flags = IORESOURCE_MEM_WRITEABLE,
|
||||
};
|
||||
|
||||
static struct device_d mem_dev = {
|
||||
|
|
|
@ -344,7 +344,6 @@ int cdev_erase(struct cdev *cdev, size_t count, unsigned long offset);
|
|||
#define DEVFS_PARTITION_FIXED (1 << 0)
|
||||
#define DEVFS_PARTITION_READONLY (1 << 1)
|
||||
#define DEVFS_IS_PARTITION (1 << 2)
|
||||
#define DEVFS_RDWR (1 << 3)
|
||||
|
||||
int devfs_add_partition(const char *devname, unsigned long offset, size_t size,
|
||||
int flags, const char *name);
|
||||
|
|
Loading…
Reference in New Issue