Commit 5dc70dac authored by Deepak Saxena's avatar Deepak Saxena

Merge bk://linux.bkbits.net/linux-2.5

into plexity.net:/home/dsaxena/src/linux-2.5-bk
parents f9c235e6 efc34f09
...@@ -540,4 +540,6 @@ pci_set_consistent_dma_mask(struct pci_dev *dev, u64 mask) ...@@ -540,4 +540,6 @@ pci_set_consistent_dma_mask(struct pci_dev *dev, u64 mask)
EXPORT_SYMBOL(pci_set_dma_mask); EXPORT_SYMBOL(pci_set_dma_mask);
EXPORT_SYMBOL(pci_dac_set_dma_mask); EXPORT_SYMBOL(pci_dac_set_dma_mask);
EXPORT_SYMBOL(pci_set_consistent_dma_mask); EXPORT_SYMBOL(pci_set_consistent_dma_mask);
EXPORT_SYMBOL(ixp4xx_pci_read);
EXPORT_SYMBOL(ixp4xx_pci_write);
...@@ -63,7 +63,7 @@ static struct resource coyote_flash_resource = { ...@@ -63,7 +63,7 @@ static struct resource coyote_flash_resource = {
.flags = IORESOURCE_MEM, .flags = IORESOURCE_MEM,
}; };
static struct platform_device coyote_flash_device = { static struct platform_device coyote_flash = {
.name = "IXP4XX-Flash", .name = "IXP4XX-Flash",
.id = 0, .id = 0,
.dev = { .dev = {
...@@ -73,9 +73,13 @@ static struct platform_device coyote_flash_device = { ...@@ -73,9 +73,13 @@ static struct platform_device coyote_flash_device = {
.resource = &coyote_flash_resource, .resource = &coyote_flash_resource,
}; };
static struct platform_device *coyote_devices[] __initdata = {
&coyote_flash
};
static void __init coyote_init(void) static void __init coyote_init(void)
{ {
platform_add_device(&coyote_flash_device); platform_add_devices(&coyote_devices, ARRAY_SIZE(coyote_devices));
} }
MACHINE_START(ADI_COYOTE, "ADI Engineering IXP4XX Coyote Development Platform") MACHINE_START(ADI_COYOTE, "ADI Engineering IXP4XX Coyote Development Platform")
......
...@@ -77,7 +77,7 @@ static struct resource ixdp425_flash_resource = { ...@@ -77,7 +77,7 @@ static struct resource ixdp425_flash_resource = {
.flags = IORESOURCE_MEM, .flags = IORESOURCE_MEM,
}; };
static struct platform_device ixdp425_flash_device = { static struct platform_device ixdp425_flash = {
.name = "IXP4XX-Flash", .name = "IXP4XX-Flash",
.id = 0, .id = 0,
.dev = { .dev = {
...@@ -101,10 +101,14 @@ static struct platform_device ixdp425_i2c_controller = { ...@@ -101,10 +101,14 @@ static struct platform_device ixdp425_i2c_controller = {
.num_resources = 0 .num_resources = 0
}; };
static struct platform_device *ixdp425_devices[] __initdata = {
&ixdp425_i2c_controller,
&ixdp425_flash
};
static void __init ixdp425_init(void) static void __init ixdp425_init(void)
{ {
platform_add_device(&ixdp425_flash_device); platform_add_devices(&ixdp425_devices, ARRAY_SIZE(ixdp425_devices));
platform_add_device(&ixdp425_i2c_controller);
} }
MACHINE_START(IXDP425, "Intel IXDP425 Development Platform") MACHINE_START(IXDP425, "Intel IXDP425 Development Platform")
......
...@@ -63,7 +63,7 @@ static struct resource prpmc1100_flash_resource = { ...@@ -63,7 +63,7 @@ static struct resource prpmc1100_flash_resource = {
.flags = IORESOURCE_MEM, .flags = IORESOURCE_MEM,
}; };
static struct platform_device prpmc1100_flash_device = { static struct platform_device prpmc1100_flash = {
.name = "IXP4XX-Flash", .name = "IXP4XX-Flash",
.id = 0, .id = 0,
.dev = { .dev = {
...@@ -73,9 +73,13 @@ static struct platform_device prpmc1100_flash_device = { ...@@ -73,9 +73,13 @@ static struct platform_device prpmc1100_flash_device = {
.resource = &prpmc1100_flash_resource, .resource = &prpmc1100_flash_resource,
}; };
static struct platform_device *prpmc1100_devices[] __initdata = {
&prpmc1100_flash
};
static void __init prpmc1100_init(void) static void __init prpmc1100_init(void)
{ {
platform_add_device(&prpmc1100_flash_device); platform_add_devices(&prpmc1100_devices, ARRAY_SIZE(prpmc1100_devices));
} }
MACHINE_START(PRPMC1100, "Motorola PrPMC1100") MACHINE_START(PRPMC1100, "Motorola PrPMC1100")
......
...@@ -117,17 +117,8 @@ enum ...@@ -117,17 +117,8 @@ enum
struct tc_police struct tc_police
{ {
__u32 index; __u32 index;
#ifdef CONFIG_NET_CLS_ACT
int refcnt; int refcnt;
int bindcnt; int bindcnt;
#endif
/* Turned off because it requires new tc
* to work (for now maintain ABI)
*
#ifdef CONFIG_NET_CLS_ACT
__u32 capab;
#endif
*/
int action; int action;
#define TC_POLICE_UNSPEC TC_ACT_UNSPEC #define TC_POLICE_UNSPEC TC_ACT_UNSPEC
#define TC_POLICE_OK TC_ACT_OK #define TC_POLICE_OK TC_ACT_OK
...@@ -195,12 +186,8 @@ enum ...@@ -195,12 +186,8 @@ enum
TCA_U32_DIVISOR, TCA_U32_DIVISOR,
TCA_U32_SEL, TCA_U32_SEL,
TCA_U32_POLICE, TCA_U32_POLICE,
#ifdef CONFIG_NET_CLS_ACT
TCA_U32_ACT, TCA_U32_ACT,
#endif
#ifdef CONFIG_NET_CLS_IND
TCA_U32_INDEV, TCA_U32_INDEV,
#endif
__TCA_U32_MAX __TCA_U32_MAX
}; };
...@@ -212,9 +199,7 @@ struct tc_u32_key ...@@ -212,9 +199,7 @@ struct tc_u32_key
__u32 val; __u32 val;
int off; int off;
int offmask; int offmask;
#ifdef CONFIG_CLS_U32_PERF __u32 kcnt;
unsigned long kcnt;
#endif
}; };
struct tc_u32_sel struct tc_u32_sel
...@@ -229,11 +214,9 @@ struct tc_u32_sel ...@@ -229,11 +214,9 @@ struct tc_u32_sel
short hoff; short hoff;
__u32 hmask; __u32 hmask;
#ifdef CONFIG_CLS_U32_PERF struct tc_u32_key keys[0];
unsigned long rcnt; unsigned long rcnt;
unsigned long rhit; unsigned long rhit;
#endif
struct tc_u32_key keys[0];
}; };
/* Flags */ /* Flags */
...@@ -300,12 +283,8 @@ enum ...@@ -300,12 +283,8 @@ enum
TCA_FW_UNSPEC, TCA_FW_UNSPEC,
TCA_FW_CLASSID, TCA_FW_CLASSID,
TCA_FW_POLICE, TCA_FW_POLICE,
#ifdef CONFIG_NET_CLS_IND
TCA_FW_INDEV, TCA_FW_INDEV,
#endif
#ifdef CONFIG_NET_CLS_ACT
TCA_FW_ACT, TCA_FW_ACT,
#endif
__TCA_FW_MAX __TCA_FW_MAX
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment