SET_NETDEV_DEV -> 83xx HDLC Driver??

Andy Fleming afleming at freescale.com
Wed Jan 30 09:32:49 EST 2008


On Jan 25, 2008, at 20:43, Russell McGuire wrote:

> All,
>
> I am partly done porting a combination of the 83xx ATM driver and  
> dscc4 HDLC
> driver into a 83xx HDLC driver.
>
> However, encounter a call I don't truly understand.
>
> SET_NETDEV_DEV(dev, pointer_to_some_handle);
>
> I can see plenty of examples of this registering some kind of PCI  
> device
> handle, however in this case I am not using a PCI device. So what  
> should the
> pointer be? Or can this call be ignored, and if so what are the
> consequences?
>
> I see the some of the Freescale Ethernet devices don't use this call.
>
> Anyway, can somebody shed some light on if I am going to need this,  
> or a way
> to get it to work, without creating a PCI device?


Look at gianfar.c (which uses a platform_device) or ucc_geth (which  
uses an of_device).  Which freescale devices don't use that call?   
We'll fix them.

Andy


More information about the Linuxppc-embedded mailing list