Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 14fd9b3f authored by Ben Dooks's avatar Ben Dooks Committed by Linus Torvalds
Browse files

[PATCH] spi: documentation does not need to set driver's bus_type field



The spi_register_driver() sets the bus_type field of the spi_driver being
registered, so there is no need to have it set in the driver itself.

Signed-off-by: default avatarBen Dooks <ben-linux@fluff.org>
Signed-off-by: default avatarDavid Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 9b40ff4d
Loading
Loading
Loading
Loading
+0 −1
Original line number Original line Diff line number Diff line
@@ -284,7 +284,6 @@ SPI protocol drivers somewhat resemble platform device drivers:
	static struct spi_driver CHIP_driver = {
	static struct spi_driver CHIP_driver = {
		.driver = {
		.driver = {
			.name		= "CHIP",
			.name		= "CHIP",
			.bus		= &spi_bus_type,
			.owner		= THIS_MODULE,
			.owner		= THIS_MODULE,
		},
		},