mirror of
https://github.com/torvalds/linux.git
synced 2024-10-26 15:02:39 +00:00
stmmac: fix setting of driver data in stmmac_dvr_probe
Commit803f8fc462
("stmmac: move driver data setting into stmmac_dvr_probe") mistakenly set priv and not priv->dev as driver data. This meant that the remove, resume and suspend callbacks that fetched and tried to use this data would most likely explode. Fix the issue by using the correct variable. Fixes:803f8fc462
("stmmac: move driver data setting into stmmac_dvr_probe") Signed-off-by: Joachim Eastwood <manabian@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
053c26f3f9
commit
a7a6268590
|
@ -2843,7 +2843,7 @@ int stmmac_dvr_probe(struct device *device,
|
|||
if (res->mac)
|
||||
memcpy(priv->dev->dev_addr, res->mac, ETH_ALEN);
|
||||
|
||||
dev_set_drvdata(device, priv);
|
||||
dev_set_drvdata(device, priv->dev);
|
||||
|
||||
/* Verify driver arguments */
|
||||
stmmac_verify_args();
|
||||
|
|
Loading…
Reference in New Issue
Block a user