diff options
Diffstat (limited to 'drivers/firewire/fw-transaction.c')
-rw-r--r-- | drivers/firewire/fw-transaction.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/firewire/fw-transaction.c b/drivers/firewire/fw-transaction.c index 8e2b94557390..3052698c13a6 100644 --- a/drivers/firewire/fw-transaction.c +++ b/drivers/firewire/fw-transaction.c | |||
@@ -761,6 +761,12 @@ static int __init fw_core_init(void) | |||
761 | if (retval < 0) | 761 | if (retval < 0) |
762 | return retval; | 762 | return retval; |
763 | 763 | ||
764 | fw_cdev_major = register_chrdev(0, "firewire", &fw_device_ops); | ||
765 | if (fw_cdev_major < 0) { | ||
766 | bus_unregister(&fw_bus_type); | ||
767 | return fw_cdev_major; | ||
768 | } | ||
769 | |||
764 | /* Add the vendor textual descriptor. */ | 770 | /* Add the vendor textual descriptor. */ |
765 | retval = fw_core_add_descriptor(&vendor_id_descriptor); | 771 | retval = fw_core_add_descriptor(&vendor_id_descriptor); |
766 | BUG_ON(retval < 0); | 772 | BUG_ON(retval < 0); |
@@ -772,6 +778,7 @@ static int __init fw_core_init(void) | |||
772 | 778 | ||
773 | static void __exit fw_core_cleanup(void) | 779 | static void __exit fw_core_cleanup(void) |
774 | { | 780 | { |
781 | unregister_chrdev(fw_cdev_major, "firewire"); | ||
775 | bus_unregister(&fw_bus_type); | 782 | bus_unregister(&fw_bus_type); |
776 | } | 783 | } |
777 | 784 | ||