greth: some driver cleanups
authorkirjanov@gmail.com <kirjanov@gmail.com>
Fri, 19 Feb 2010 05:00:52 +0000 (05:00 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 19 Feb 2010 21:15:51 +0000 (13:15 -0800)
commit6e03718c852a7b2ce756e37ae340f4ebfec2f6f3
tree757de27224214a865b55983ee79c7ba3301c777f
parent91fea5858418127ad33e0060f726c62be0047eaf
greth: some driver cleanups

On Fri, Feb 19, 2010 at 13:51 +0100, Jiri Pirko wrote:
>
> <snip>
> >>@@ -1031,7 +1029,7 @@ static void greth_set_multicast_list(struct net_device *dev)
> >>  return;
> >>  }
> >>
> >>- if (dev->mc_count == 0) {
> >>+ if (!netdev_mc_count(dev)) {
> also please use netdev_mc_empty() here.
Some driver cleanups:
* convert to use phy_find_first/phy_direct_connect
* convert to use netdev_mc_* helpers
* fixed missing validate_addr hook
* removed netdev_priv castings

Signed-off-by: Denis Kirjanov <kirjanov@gmail.com>
Reviewed-by: Jiri Pirko <jpirko@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/greth.c