atm: correct sysfs 'device' link creation and parent relationships
authorDan Williams <dcbw@redhat.com>
Wed, 8 Dec 2010 19:40:47 +0000 (19:40 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 10 Dec 2010 23:45:05 +0000 (15:45 -0800)
commitd9ca676bcb26e1fdff9265a3e70f697cd381c889
tree72ab0bf8cb22291eb4e1a57329bb8e1df2b7649f
parentfb890ae7d615f4b4f5689144b6832230ab2046aa
atm: correct sysfs 'device' link creation and parent relationships

The ATM subsystem was incorrectly creating the 'device' link for ATM
nodes in sysfs.  This led to incorrect device/parent relationships
exposed by sysfs and udev.  Instead of rolling the 'device' link by hand
in the generic ATM code, pass each ATM driver's bus device down to the
sysfs code and let sysfs do this stuff correctly.

Signed-off-by: Dan Williams <dcbw@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
19 files changed:
drivers/atm/adummy.c
drivers/atm/ambassador.c
drivers/atm/atmtcp.c
drivers/atm/eni.c
drivers/atm/firestream.c
drivers/atm/fore200e.c
drivers/atm/he.c
drivers/atm/horizon.c
drivers/atm/idt77252.c
drivers/atm/iphase.c
drivers/atm/lanai.c
drivers/atm/nicstar.c
drivers/atm/solos-pci.c
drivers/atm/zatm.c
drivers/usb/atm/usbatm.c
include/linux/atmdev.h
net/atm/atm_sysfs.c
net/atm/resources.c
net/atm/resources.h