Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

video: Remove redundant spi driver bus initialization

In ancient times it was necessary to manually initialize the bus field of an
spi_driver to spi_bus_type. These days this is done in spi_driver_register(),
so we can drop the manual assignment.

The patch was generated using the following coccinelle semantic patch:
// <smpl>
@@
identifier _driver;
@@
struct spi_driver _driver = {
.driver = {
- .bus = &spi_bus_type,
},
};
// </smpl>

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Acked-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Cc: linux-fbdev@vger.kernel.org
Cc: linux-omap@vger.kernel.org
Signed-off-by: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>

authored by

Lars-Peter Clausen and committed by
Florian Tobias Schandinat
9056df19 61640c29

-5
-1
drivers/video/omap/lcd_mipid.c
··· 603 603 static struct spi_driver mipid_spi_driver = { 604 604 .driver = { 605 605 .name = MIPID_MODULE_NAME, 606 - .bus = &spi_bus_type, 607 606 .owner = THIS_MODULE, 608 607 }, 609 608 .probe = mipid_spi_probe,
-1
drivers/video/omap2/displays/panel-acx565akm.c
··· 803 803 static struct spi_driver acx565akm_spi_driver = { 804 804 .driver = { 805 805 .name = "acx565akm", 806 - .bus = &spi_bus_type, 807 806 .owner = THIS_MODULE, 808 807 }, 809 808 .probe = acx565akm_spi_probe,
-1
drivers/video/omap2/displays/panel-n8x0.c
··· 708 708 static struct spi_driver mipid_spi_driver = { 709 709 .driver = { 710 710 .name = "lcd_mipid", 711 - .bus = &spi_bus_type, 712 711 .owner = THIS_MODULE, 713 712 }, 714 713 .probe = mipid_spi_probe,
-1
drivers/video/omap2/displays/panel-nec-nl8048hl11-01b.c
··· 303 303 .resume = nec_8048_spi_resume, 304 304 .driver = { 305 305 .name = "nec_8048_spi", 306 - .bus = &spi_bus_type, 307 306 .owner = THIS_MODULE, 308 307 }, 309 308 };
-1
drivers/video/omap2/displays/panel-tpo-td043mtea1.c
··· 512 512 static struct spi_driver tpo_td043_spi_driver = { 513 513 .driver = { 514 514 .name = "tpo_td043mtea1_panel_spi", 515 - .bus = &spi_bus_type, 516 515 .owner = THIS_MODULE, 517 516 }, 518 517 .probe = tpo_td043_spi_probe,