[PATCH] mtd: spi-nor: Remove unneeded driver.bus assignment
Cyrille Pitchen
cyrille.pitchen at wedev4u.fr
Sun Mar 4 08:55:32 PST 2018
Le 14/02/2018 à 17:09, Han Xu a écrit :
>
>
> 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>
Applied to the spi-nor/next branch of linux-mtd
Thanks!
>> ---
>> 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