projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1cb1860
)
net: smc91x: take into account register shift
author
Robert Jarzmik
<
[email protected]
>
Sun, 25 Sep 2016 21:00:45 +0000
(23:00 +0200)
committer
David S. Miller
<
[email protected]
>
Mon, 26 Sep 2016 03:45:32 +0000
(23:45 -0400)
This aligns smc91x with its cousin, namely smc911x.c.
This also allows the driver to run also in a device-tree based lubbock
board build, on which it was tested.
Signed-off-by: Robert Jarzmik <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
drivers/net/ethernet/smsc/smc91x.c
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/smsc/smc91x.c
b/drivers/net/ethernet/smsc/smc91x.c
index 503a3b6dce917f3fdb043dab106b80832103ce93..73212590d04a362e055039d90b11e1329592d21a 100644
(file)
--- a/
drivers/net/ethernet/smsc/smc91x.c
+++ b/
drivers/net/ethernet/smsc/smc91x.c
@@
-2323,6
+2323,9
@@
static int smc_drv_probe(struct platform_device *pdev)
} else {
lp->cfg.flags |= SMC91X_USE_16BIT;
}
+ if (!device_property_read_u32(&pdev->dev, "reg-shift",
+ &val))
+ lp->io_shift = val;
}
#endif