]> 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)
commit57ec0ab985b3b8c54b5340b35bab40d2ecc67031
tree49b9417293589910951996f73898357a2e17fb62
parente2655034b89e253dfdb8ac2cfbddae7b2a27eb63
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