Thread (2 messages) 2 messages, 1 author, 2015-07-23

RE: [v3, 5/9] fsl/fman: Add Frame Manager support

flat view

From: Liberman Igal <hidden>
Date: 2015-07-23 12:46:02
Also in: lkml, netdev

Regards,
Igal Liberman.
quoted hunk ↗ jump to hunk
+static struct platform_driver fm_driver =3D {
+	.driver =3D {
+		   .name =3D "fsl-fman",
+		   .of_match_table =3D fm_match,
+		   },
+	.probe =3D fm_probe,
+};
+
+builtin_platform_driver(fm_driver);
+
+static int __init __cold fm_load(void)
+{
+	if (platform_driver_register(&fm_driver)) {
+		pr_crit("platform_driver_register() failed\n");
+		return -ENODEV;
+	}
+
+	pr_info("Freescale FMan module\n");
+	return 0;
+}
+
+device_initcall(fm_load);
Please notice, when using builtin_platform_driver, device_initcall(fm_load)=
; becomes redundant.=20
Same issue in 2 other places.
I have patches which fix that which were left out of this submission, I'll =
add them to v4.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help