diff options
Diffstat (limited to 'drivers/firmware')
-rw-r--r-- | drivers/firmware/edd.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/firmware/edd.c b/drivers/firmware/edd.c index ddcc95793068..dc0b87b13505 100644 --- a/drivers/firmware/edd.c +++ b/drivers/firmware/edd.c | |||
@@ -721,13 +721,13 @@ edd_device_register(struct edd_device *edev, int i) | |||
721 | if (!edev) | 721 | if (!edev) |
722 | return 1; | 722 | return 1; |
723 | edd_dev_set_info(edev, i); | 723 | edd_dev_set_info(edev, i); |
724 | kobject_set_name(&edev->kobj, "int13_dev%02x", | ||
725 | 0x80 + i); | ||
726 | edev->kobj.kset = edd_kset; | 724 | edev->kobj.kset = edd_kset; |
727 | edev->kobj.ktype = &edd_ktype; | 725 | error = kobject_init_and_add(&edev->kobj, &edd_ktype, NULL, |
728 | error = kobject_register(&edev->kobj); | 726 | "int13_dev%02x", 0x80 + i); |
729 | if (!error) | 727 | if (!error) { |
730 | edd_populate_dir(edev); | 728 | edd_populate_dir(edev); |
729 | kobject_uevent(&edev->kobj, KOBJ_ADD); | ||
730 | } | ||
731 | return error; | 731 | return error; |
732 | } | 732 | } |
733 | 733 | ||