]> git.baikalelectronics.ru Git - kernel.git/commit
SolutionEngine771x: fix Ether platform data
authorSergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Sat, 6 Jan 2018 18:53:26 +0000 (21:53 +0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 9 Jan 2018 17:21:14 +0000 (12:21 -0500)
commite96c685d0b467dd1551b2cf979ff0d490f76b882
tree49b9417293589910951996f73898357a2e17fb62
parent48eaa5afee37055c51434348fdc0886b9bab1d50
SolutionEngine771x: fix Ether platform data

The 'sh_eth' driver's probe() method would fail  on the SolutionEngine7710
board and crash on SolutionEngine7712 board  as the platform code is
hopelessly behind the driver's platform data --  it passes the PHY address
instead of 'struct sh_eth_plat_data *'; pass the latter to the driver in
order to fix the bug...

Fixes: 5026c30e791e ("[netdrvr] sh_eth: Add SH7619 support")
Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sh/boards/mach-se/770x/setup.c