mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2025-01-27 10:21:06 +02:00
ixp4xx: fix compiler warnings in wrt300nv2-setup.c
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22655 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
7ebc0dfae5
commit
c55e5c2c25
@ -26,17 +26,18 @@
|
|||||||
.rxq = 3,
|
.rxq = 3,
|
||||||
.txreadyq = 20,
|
.txreadyq = 20,
|
||||||
}, {
|
}, {
|
||||||
@@ -111,6 +114,9 @@ static struct platform_device *wrt300nv2
|
@@ -110,6 +113,10 @@ static struct platform_device *wrt300nv2
|
||||||
|
|
||||||
static void __init wrt300nv2_init(void)
|
static void __init wrt300nv2_init(void)
|
||||||
{
|
{
|
||||||
ixp4xx_sys_init();
|
|
||||||
+ uint8_t __iomem *f;
|
+ uint8_t __iomem *f;
|
||||||
+ int offset = 0;
|
+ int offset = 0;
|
||||||
+ int i;
|
+ int i;
|
||||||
|
+
|
||||||
|
ixp4xx_sys_init();
|
||||||
|
|
||||||
wrt300nv2_flash_resource.start = IXP4XX_EXP_BUS_BASE(0);
|
wrt300nv2_flash_resource.start = IXP4XX_EXP_BUS_BASE(0);
|
||||||
wrt300nv2_flash_resource.end = IXP4XX_EXP_BUS_BASE(0) + SZ_32M - 1;
|
@@ -119,6 +126,32 @@ static void __init wrt300nv2_init(void)
|
||||||
@@ -119,6 +125,32 @@ static void __init wrt300nv2_init(void)
|
|
||||||
*IXP4XX_EXP_CS1 = *IXP4XX_EXP_CS0;
|
*IXP4XX_EXP_CS1 = *IXP4XX_EXP_CS0;
|
||||||
|
|
||||||
platform_add_devices(wrt300nv2_devices, ARRAY_SIZE(wrt300nv2_devices));
|
platform_add_devices(wrt300nv2_devices, ARRAY_SIZE(wrt300nv2_devices));
|
||||||
|
@ -26,17 +26,18 @@
|
|||||||
.rxq = 3,
|
.rxq = 3,
|
||||||
.txreadyq = 20,
|
.txreadyq = 20,
|
||||||
}, {
|
}, {
|
||||||
@@ -111,6 +114,9 @@ static struct platform_device *wrt300nv2
|
@@ -110,6 +113,10 @@ static struct platform_device *wrt300nv2
|
||||||
|
|
||||||
static void __init wrt300nv2_init(void)
|
static void __init wrt300nv2_init(void)
|
||||||
{
|
{
|
||||||
ixp4xx_sys_init();
|
|
||||||
+ uint8_t __iomem *f;
|
+ uint8_t __iomem *f;
|
||||||
+ int offset = 0;
|
+ int offset = 0;
|
||||||
+ int i;
|
+ int i;
|
||||||
|
+
|
||||||
|
ixp4xx_sys_init();
|
||||||
|
|
||||||
wrt300nv2_flash_resource.start = IXP4XX_EXP_BUS_BASE(0);
|
wrt300nv2_flash_resource.start = IXP4XX_EXP_BUS_BASE(0);
|
||||||
wrt300nv2_flash_resource.end = IXP4XX_EXP_BUS_BASE(0) + SZ_32M - 1;
|
@@ -119,6 +126,32 @@ static void __init wrt300nv2_init(void)
|
||||||
@@ -119,6 +125,32 @@ static void __init wrt300nv2_init(void)
|
|
||||||
*IXP4XX_EXP_CS1 = *IXP4XX_EXP_CS0;
|
*IXP4XX_EXP_CS1 = *IXP4XX_EXP_CS0;
|
||||||
|
|
||||||
platform_add_devices(wrt300nv2_devices, ARRAY_SIZE(wrt300nv2_devices));
|
platform_add_devices(wrt300nv2_devices, ARRAY_SIZE(wrt300nv2_devices));
|
||||||
|
@ -26,17 +26,18 @@
|
|||||||
.rxq = 3,
|
.rxq = 3,
|
||||||
.txreadyq = 20,
|
.txreadyq = 20,
|
||||||
}, {
|
}, {
|
||||||
@@ -111,6 +114,9 @@ static struct platform_device *wrt300nv2
|
@@ -110,6 +113,10 @@ static struct platform_device *wrt300nv2
|
||||||
|
|
||||||
static void __init wrt300nv2_init(void)
|
static void __init wrt300nv2_init(void)
|
||||||
{
|
{
|
||||||
ixp4xx_sys_init();
|
|
||||||
+ uint8_t __iomem *f;
|
+ uint8_t __iomem *f;
|
||||||
+ int offset = 0;
|
+ int offset = 0;
|
||||||
+ int i;
|
+ int i;
|
||||||
|
+
|
||||||
|
ixp4xx_sys_init();
|
||||||
|
|
||||||
wrt300nv2_flash_resource.start = IXP4XX_EXP_BUS_BASE(0);
|
wrt300nv2_flash_resource.start = IXP4XX_EXP_BUS_BASE(0);
|
||||||
wrt300nv2_flash_resource.end = IXP4XX_EXP_BUS_BASE(0) + SZ_32M - 1;
|
@@ -119,6 +126,32 @@ static void __init wrt300nv2_init(void)
|
||||||
@@ -119,6 +125,32 @@ static void __init wrt300nv2_init(void)
|
|
||||||
*IXP4XX_EXP_CS1 = *IXP4XX_EXP_CS0;
|
*IXP4XX_EXP_CS1 = *IXP4XX_EXP_CS0;
|
||||||
|
|
||||||
platform_add_devices(wrt300nv2_devices, ARRAY_SIZE(wrt300nv2_devices));
|
platform_add_devices(wrt300nv2_devices, ARRAY_SIZE(wrt300nv2_devices));
|
||||||
|
@ -26,17 +26,18 @@
|
|||||||
.rxq = 3,
|
.rxq = 3,
|
||||||
.txreadyq = 20,
|
.txreadyq = 20,
|
||||||
}, {
|
}, {
|
||||||
@@ -111,6 +114,9 @@ static struct platform_device *wrt300nv2
|
@@ -110,6 +113,10 @@ static struct platform_device *wrt300nv2
|
||||||
|
|
||||||
static void __init wrt300nv2_init(void)
|
static void __init wrt300nv2_init(void)
|
||||||
{
|
{
|
||||||
ixp4xx_sys_init();
|
|
||||||
+ uint8_t __iomem *f;
|
+ uint8_t __iomem *f;
|
||||||
+ int offset = 0;
|
+ int offset = 0;
|
||||||
+ int i;
|
+ int i;
|
||||||
|
+
|
||||||
|
ixp4xx_sys_init();
|
||||||
|
|
||||||
wrt300nv2_flash_resource.start = IXP4XX_EXP_BUS_BASE(0);
|
wrt300nv2_flash_resource.start = IXP4XX_EXP_BUS_BASE(0);
|
||||||
wrt300nv2_flash_resource.end = IXP4XX_EXP_BUS_BASE(0) + SZ_32M - 1;
|
@@ -119,6 +126,32 @@ static void __init wrt300nv2_init(void)
|
||||||
@@ -119,6 +125,32 @@ static void __init wrt300nv2_init(void)
|
|
||||||
*IXP4XX_EXP_CS1 = *IXP4XX_EXP_CS0;
|
*IXP4XX_EXP_CS1 = *IXP4XX_EXP_CS0;
|
||||||
|
|
||||||
platform_add_devices(wrt300nv2_devices, ARRAY_SIZE(wrt300nv2_devices));
|
platform_add_devices(wrt300nv2_devices, ARRAY_SIZE(wrt300nv2_devices));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user