Commit 04b91701 authored by Arnd Bergmann's avatar Arnd Bergmann Committed by David S. Miller

ARM: fix typos in smc91x platform data

I recently did a rework of the smc91x driver and did some build-testing
by compiling hundreds of randconfig kernels. Unfortunately, my script
was wrong and did not actually test the configurations that mattered,
so I introduced stupid typos in almost every file I touched.

I fixed my script now, built all configurations that actually matter
and fixed all the typos, this is the result.
Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
Fixes: b70661c7 ("net: smc91x: use run-time configuration on all ARM machines")
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 9215f437
...@@ -36,6 +36,7 @@ ...@@ -36,6 +36,7 @@
#include <linux/platform_data/video-pxafb.h> #include <linux/platform_data/video-pxafb.h>
#include <mach/bitfield.h> #include <mach/bitfield.h>
#include <linux/platform_data/mmc-pxamci.h> #include <linux/platform_data/mmc-pxamci.h>
#include <linux/smc91x.h>
#include "generic.h" #include "generic.h"
#include "devices.h" #include "devices.h"
......
...@@ -195,7 +195,7 @@ static struct resource smc91x_resources[] = { ...@@ -195,7 +195,7 @@ static struct resource smc91x_resources[] = {
}; };
struct smc91x_platdata smc91x_platdata = { struct smc91x_platdata smc91x_platdata = {
.flags = SMC91X_USE_16BIT | SMC91X_NOWAIT; .flags = SMC91X_USE_16BIT | SMC91X_NOWAIT,
}; };
static struct platform_device smc91x_device = { static struct platform_device smc91x_device = {
......
...@@ -268,8 +268,8 @@ static int neponset_probe(struct platform_device *dev) ...@@ -268,8 +268,8 @@ static int neponset_probe(struct platform_device *dev)
.id = 0, .id = 0,
.res = smc91x_resources, .res = smc91x_resources,
.num_res = ARRAY_SIZE(smc91x_resources), .num_res = ARRAY_SIZE(smc91x_resources),
.data = &smc91c_platdata, .data = &smc91x_platdata,
.size_data = sizeof(smc91c_platdata), .size_data = sizeof(smc91x_platdata),
}; };
int ret, irq; int ret, irq;
......
...@@ -54,7 +54,7 @@ static struct platform_device smc91x_device = { ...@@ -54,7 +54,7 @@ static struct platform_device smc91x_device = {
.num_resources = ARRAY_SIZE(smc91x_resources), .num_resources = ARRAY_SIZE(smc91x_resources),
.resource = smc91x_resources, .resource = smc91x_resources,
.dev = { .dev = {
.platform_data = &smc91c_platdata, .platform_data = &smc91x_platdata,
}, },
}; };
......
...@@ -92,6 +92,7 @@ static const char version[] = ...@@ -92,6 +92,7 @@ static const char version[] =
#include "smc91x.h" #include "smc91x.h"
#if defined(CONFIG_ASSABET_NEPONSET) #if defined(CONFIG_ASSABET_NEPONSET)
#include <mach/assabet.h>
#include <mach/neponset.h> #include <mach/neponset.h>
#endif #endif
......
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