]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
sh_eth: make 'link' field of 'struct sh_eth_private' *int*
authorSergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Sun, 31 Mar 2013 10:11:04 +0000 (10:11 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 31 Mar 2013 23:42:44 +0000 (19:42 -0400)
commit3340d2aae3433ad9147f6bf0adc452b324e31591
tree2f016de5dd8eaea175f1aec891f982ef8622277d
parent3893b27345ac0ff13c1b9ec20ad50966b810997e
sh_eth: make 'link' field of 'struct sh_eth_private' *int*

The 'link' field of 'struct sh_eth_private' has type 'enum phy_state' while the
'link' field of 'struct phy_device' is merely *int* (having values 0 and 1) and
the former field gets assigned from the latter. Make the field match, getting
rid of incorrectly used PHY_DOWN value in assignments/comparisons.

Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/renesas/sh_eth.c
drivers/net/ethernet/renesas/sh_eth.h