• Lars-Peter Clausen's avatar
    wireless: Remove redundant spi driver bus initialization · 4e3309ba
    Lars-Peter Clausen authored
    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: default avatarLars-Peter Clausen <lars@metafoo.de>
    Cc: Dan Williams <dcbw@redhat.com>
    Cc: "John W. Linville" <linville@tuxdriver.com>
    Cc: Christian Lamparter <chunkeey@googlemail.com>
    Cc: Luciano Coelho <coelho@ti.com>
    Cc: libertas-dev@lists.infradead.org
    Cc: linux-wireless@vger.kernel.org
    Acked-by: default avatarLuciano Coelho <coelho@ti.com>
    Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
    4e3309ba
spi.c 7.28 KB