[PATCH v2 2/2] mtd: spi-nor: add rockchip serial flash controller driver

Shawn Lin shawn.lin at rock-chips.com
Tue Nov 29 16:58:18 PST 2016


在 2016/11/25 21:55, Marek Vasut 写道:
> On 11/18/2016 03:59 AM, Shawn Lin wrote:
>> Add rockchip serial flash controller driver
>>
>> Signed-off-by: Shawn Lin <shawn.lin at rock-chips.com>
>
> [...]
>
>> +static void rockchip_sfc_unregister_all(struct rockchip_sfc *sfc)
>> +{
>> +	int i;
>> +
>> +	for (i = 0; i < sfc->num_chip; i++)
>> +		mtd_device_unregister(&(sfc->flash[sfc->num_chip].nor.mtd));
>                                                    ^^^^^^^^^^^^^
> This will always unregister the same flash, no ? This cannot work.

Ah, yup, I will fix this. :)

>
>> +}
>
> [...]
>


-- 
Best Regards
Shawn Lin




More information about the linux-mtd mailing list