[PATCH] mtd: spi-nor: Remove unneeded driver.bus assignment
Han Xu
han.xu at nxp.com
Wed Feb 14 08:09:45 PST 2018
On 02/14/2018 06:46 AM, Boris Brezillon wrote:
> platform_driver_register() takes care of assigning driver->bus
> to &platform_bus_type, no need to explicitly assign it in the driver.
>
> Signed-off-by: Boris Brezillon <boris.brezillon at bootlin.com>
> ---
> drivers/mtd/spi-nor/fsl-quadspi.c | 1 -
> 1 file changed, 1 deletion(-)
>
> diff --git a/drivers/mtd/spi-nor/fsl-quadspi.c b/drivers/mtd/spi-nor/fsl-quadspi.c
> index 2901c7bd9e30..dc9914fce296 100644
> --- a/drivers/mtd/spi-nor/fsl-quadspi.c
> +++ b/drivers/mtd/spi-nor/fsl-quadspi.c
> @@ -1174,7 +1174,6 @@ static int fsl_qspi_resume(struct platform_device *pdev)
> static struct platform_driver fsl_qspi_driver = {
> .driver = {
> .name = "fsl-quadspi",
> - .bus = &platform_bus_type,
> .of_match_table = fsl_qspi_dt_ids,
> },
> .probe = fsl_qspi_probe,
Acked-by: Han Xu <han.xu at nxp.com>
More information about the linux-mtd
mailing list