9
0
Fork 0

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>
This commit is contained in:
Robert Jarzmik 2015-04-11 23:42:41 +02:00 committed by Sascha Hauer
parent 3fe92e8bad
commit 6393f1345a
1 changed files with 2 additions and 2 deletions

View File

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