Thread (43 messages) 43 messages, 6 authors, 2018-04-24

RE: [PATCH net-next 5/8] net: mscc: Add initial Ocelot switch support

From: Razvan Stefanescu <hidden>
Date: 2018-03-30 07:02:18
Also in: linux-devicetree, linux-mips, lkml

Hello Alexandre,
+
+	register_netdevice_notifier(&ocelot_netdevice_nb);
+
+	dev_info(&pdev->dev, "Ocelot switch probed\n");
+
+	return 0;
+
+err_probe_ports:
+	return err;
+}
+
+static int mscc_ocelot_remove(struct platform_device *pdev)
+{
+	unregister_netevent_notifier(&ocelot_netdevice_nb);
This should be replaced with a call to unregister_netdevice_notifier(). And also makes
the inclusion of net/netevent.h not necessary.

Best regards,
Razvan
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help