summaryrefslogtreecommitdiffstats
path: root/drivers/net/smc91111.c
diff options
context:
space:
mode:
authorRobert Jarzmik <robert.jarzmik@free.fr>2015-04-11 23:42:41 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2015-04-13 09:17:40 +0200
commit6393f1345a1d3e70b93f30956a43669123acae11 (patch)
tree4fdfa0bbbd4ee1ad395a1e23b2a0e9cc6ac3ec8a /drivers/net/smc91111.c
parent3fe92e8badc71e682f841cb8e8faa1623d74efbf (diff)
downloadbarebox-6393f1345a1d3e70b93f30956a43669123acae11.tar.gz
barebox-6393f1345a1d3e70b93f30956a43669123acae11.tar.xz
net: smc1111: fix platform data initializations
The configuration and control setup introduced in commit "extend the driver for 91c94 and 91c96 support" suffers from a typo defect, which makes the commit broken. The typo happens to be in barebox tree, while it's not in the tested patches I had, and there was a mismatch in my former submission, which is fixed by this patch. Signed-off-by: Robert Jarzmik <robert.jarzmik@free.fr> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/net/smc91111.c')
-rw-r--r--drivers/net/smc91111.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/smc91111.c b/drivers/net/smc91111.c
index 698c74add1..709a7402e4 100644
--- a/drivers/net/smc91111.c
+++ b/drivers/net/smc91111.c
@@ -1435,8 +1435,8 @@ static int smc91c111_probe(struct device_d *dev)
priv->shift = pdata->addr_shift;
if (pdata->bus_width == 16)
priv->a = access_via_16bit;
- pdata->config_setup = pdata->config_setup;
- pdata->control_setup = pdata->control_setup;
+ priv->config_setup = pdata->config_setup;
+ priv->control_setup = pdata->control_setup;
}
edev->init = smc91c111_init_dev;