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
427 427
428#define ATM_SKB(skb) (((struct atm_skb_data *) (skb)->cb))428#define ATM_SKB(skb) (((struct atm_skb_data *) (skb)->cb))
429 429
430struct atm_dev *atm_dev_register(const char *type,const struct atmdev_ops *ops,430struct atm_dev *atm_dev_register(const char *type, struct device *parent,
431 int number,unsigned long *flags); /* number == -1: pick first available */431 const struct atmdev_ops *ops,
432 int number, /* -1 == pick first available */
433 unsigned long *flags);
432struct atm_dev *atm_dev_lookup(int number);434struct atm_dev *atm_dev_lookup(int number);
433void atm_dev_deregister(struct atm_dev *dev);435void atm_dev_deregister(struct atm_dev *dev);
434 436