]> git.baikalelectronics.ru Git - kernel.git/commit
stmmac: fix setting of driver data in stmmac_dvr_probe
authorJoachim Eastwood <manabian@gmail.com>
Fri, 17 Jul 2015 21:48:17 +0000 (23:48 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 21 Jul 2015 07:26:45 +0000 (00:26 -0700)
commitf9991a64cbcff10f299d50c14fd2a48e87e5fbe0
treec386dcac1b8cd0f6b8c0397bc8431ac64404da5a
parent4201fde790372c672b46021a6dfc19c39f0aae87
stmmac: fix setting of driver data in stmmac_dvr_probe

Commit d29fd70ef4b16 ("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: d29fd70ef4b16 ("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>
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c