Thread (15 messages) 15 messages, 4 authors, 2015-07-20

Re: [PATCH 7/7] mtd: atmel-quadspi: add driver for Atmel QSPI controller

From: Paul Bolle <hidden>
Date: 2015-07-17 09:04:44
Also in: linux-arm-kernel, linux-spi, lkml

On do, 2015-07-16 at 17:27 +0200, Cyrille Pitchen wrote:
quoted hunk ↗ jump to hunk
--- /dev/null
+++ b/drivers/mtd/spi-nor/atmel-quadspi.c
+static struct platform_driver atmel_qspi_driver = {
+	.driver		= {
+		[...]
+		.bus	= &platform_bus_type,
+		[...]
+};
+module_platform_driver(atmel_qspi_driver);
Nit: on module init this will basically do
    __platform_driver_register(&atmel_qspi_driver, THIS_MODULE);

which will again set bus to &platform_bus_type. So you might as well
drop that line.


Paul Bolle
--
To unsubscribe from this list: send the line "unsubscribe linux-spi" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help