Skip to content

Commit

Permalink
net: smc91x: take into account register shift
Browse files Browse the repository at this point in the history
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 <robert.jarzmik@free.fr>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Robert Jarzmik authored and David S. Miller committed Sep 26, 2016
1 parent 1cb1860 commit 876a55b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/net/ethernet/smsc/smc91x.c
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 876a55b

Please sign in to comment.