Re: [PATCH 1/2] cxacru: Create sysfs attributes in atm_start instead of bind

2007-05-04 Thread Andrew Morton
On Fri, 04 May 2007 18:03:22 +0100 Simon Arlott <[EMAIL PROTECTED]> wrote: > Since usbatm doesn't set the usb_interface driver data until after calling > bind > and heavy_init, it would be NULL when the sysfs attributes are read. Reading > the > MAC address from atm_dev before atm_dev exists w

[PATCH 1/2] cxacru: Create sysfs attributes in atm_start instead of bind

2007-05-04 Thread Simon Arlott
Since usbatm doesn't set the usb_interface driver data until after calling bind and heavy_init, it would be NULL when the sysfs attributes are read. Reading the MAC address from atm_dev before atm_dev exists would have been be possible too. Calling create_device_file in atm_start will avoid thi