9
0
Fork 0

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:
Jean-Christophe PLAGNIOL-VILLARD 2011-07-18 20:31:38 +08:00
parent d5b96bdca9
commit 88618eb5f1
43 changed files with 52 additions and 53 deletions

View File

@ -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 = {

View File

@ -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 = {

View File

@ -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 = {

View File

@ -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 = {

View File

@ -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 = {

View File

@ -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

View File

@ -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 = {

View File

@ -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 = {

View File

@ -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 = {

View File

@ -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 = {

View File

@ -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 = {

View File

@ -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 = {

View File

@ -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 = {

View File

@ -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 = {

View File

@ -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 = {

View File

@ -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 = {

View File

@ -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 = {

View File

@ -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 = {

View File

@ -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 = {

View File

@ -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 = {

View File

@ -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 = {

View File

@ -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 = {

View File

@ -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 = {

View File

@ -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 = {

View File

@ -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 = {

View File

@ -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 = {

View File

@ -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 = {

View File

@ -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 = {

View File

@ -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 = {

View File

@ -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 = {

View File

@ -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 = {

View File

@ -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 = {

View File

@ -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 = {

View File

@ -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 = {

View File

@ -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 = {

View File

@ -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[] = {

View File

@ -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 = {

View File

@ -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 = {

View File

@ -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 = {

View File

@ -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 = {

View File

@ -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 = {

View File

@ -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 = {

View File

@ -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);