History

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.

Dan Williams committed 15 years ago

Commit d9ca6761 parent fb890ae19 files · +41 −42Browse files

Showing the changes to include/linux/atmdev.h (1 of 19 files). Show all

Unified · Split

include/linux/atmdev.h+4−2
@@ -427,8 +427,10 @@ extern rwlock_t vcc_sklist_lock; · 426 unmodified lines
427427
428428 #define ATM_SKB(skb) (((struct atm_skb_data *) (skb)->cb))
429429
430−struct atm_dev *atm_dev_register(const char *type,const struct atmdev_ops *ops,
431− int number,unsigned long *flags); /* number == -1: pick first available */
430+struct atm_dev *atm_dev_register(const char *type, struct device *parent,
431+ const struct atmdev_ops *ops,
432+ int number, /* -1 == pick first available */
433+ unsigned long *flags);
432434 struct atm_dev *atm_dev_lookup(int number);
433435 void atm_dev_deregister(struct atm_dev *dev);
434436