Re: [PATCHv3 3/3] net: velocity: Add platform device support to VIA velocity driver

2013-05-02 Thread Russell King - ARM Linux
On Tue, Apr 30, 2013 at 01:04:50AM +0200, Francois Romieu wrote: > Tony Prisk : > [...] > > +static int velocity_remove(void *pdev, enum velocity_bus_type bustype) > > +{ > > + struct net_device *netdev; > > + struct velocity_info *vptr; > > + int pci = (bustype == BUS_PCI) ? 1 : 0; > > + >

Re: [PATCHv3 3/3] net: velocity: Add platform device support to VIA velocity driver

2013-04-29 Thread Francois Romieu
Tony Prisk : [...] > +static int velocity_remove(void *pdev, enum velocity_bus_type bustype) > +{ > + struct net_device *netdev; > + struct velocity_info *vptr; > + int pci = (bustype == BUS_PCI) ? 1 : 0; > + > + if (pci) > + netdev = pci_get_drvdata(pdev); > + else

[PATCHv3 3/3] net: velocity: Add platform device support to VIA velocity driver

2013-04-29 Thread Tony Prisk
Add support for the VIA Velocity network driver to be bound to a OF created platform device. Signed-off-by: Tony Prisk --- .../devicetree/bindings/net/via-velocity.txt | 20 + drivers/net/ethernet/via/Kconfig |3 +- drivers/net/ethernet/via/via-velocity.c