Re: [PATCH 10/15] mfd: motorola-cpcap: use devm_of_platform_populate()
From: Andy Shevchenko
Date: Tue May 30 2017 - 06:46:42 EST
On Tue, May 30, 2017 at 1:03 PM, Lee Jones <lee.jones@xxxxxxxxxx> wrote:
> On Tue, 30 May 2017, Andy Shevchenko wrote:
>
>> On Mon, May 29, 2017 at 6:45 PM, Benjamin Gaignard
>> <benjamin.gaignard@xxxxxxxxxx> wrote:
>> > Usage of devm_of_platform_populate() simplify driver code
>> > by allowing to delete cpcap_remove().
>>
>> > - .remove = cpcap_remove,
>>
>> Can you remove module after that change?
>
> Why wouldn't you?
Indeed.
Just checked __device_release_driver().
--
With Best Regards,
Andy Shevchenko