]> git.baikalelectronics.ru Git - kernel.git/commit
SH7619: fix Ether support
authorSergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Sat, 17 Aug 2013 22:15:42 +0000 (02:15 +0400)
committerDavid S. Miller <davem@davemloft.net>
Wed, 21 Aug 2013 00:10:40 +0000 (17:10 -0700)
commit81419a1d881a4dbe051936db4a7425b725fcd52b
tree5a80eb7e8436b675b4790bb9362cb5e356b03a18
parentb2fc94069976c9821d9d4919ce6b4bdddd0b321c
SH7619: fix Ether support

The 'sh_eth' driver's probe will crash as the platform code is hopelessly behind
the platform data -- it passes PHY ID instead of 'struct sh_eth_plat_data *'.
Strangely, both commit 0491d31a06b1 (SH7619 add ethernet controler support) that
added the platform code and commit 5026c30e791e ([netdrvr] sh_eth: Add  SH7619
support)  were done  in about  the same time, yet the latter one added 'struct
sh_eth_plat_data' and the platform code didn't ever get updated...

Add the proper platform data and fix off-by-one memory resource end error, while
at it...

Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sh/kernel/cpu/sh2/setup-sh7619.c