rc = dsa_slave_register_notifier();
if (rc)
- return rc;
+ goto register_notifier_fail;
- rc = dsa_legacy_register();
- if (rc)
- goto legacy_register_fail;
-
dev_add_pack(&dsa_pack_type);
+ dsa_tag_driver_register(&DSA_TAG_DRIVER_NAME(none_ops),
+ THIS_MODULE);
+
return 0;
-legacy_register_fail:
- dsa_slave_unregister_notifier();
+
+ register_notifier_fail:
+ destroy_workqueue(dsa_owq);
+
+ return rc;
}
module_init(dsa_init_module);