Re: [PATCH 00/50] pinctrl: Add and use devm_ apis for pinctrl_{register, unregister}

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On Wednesday 24 February 2016 10:52 PM, Stefan Wahren wrote:
Hi Laxman,

Laxman Dewangan <ldewangan@xxxxxxxxxx> hat am 24. Februar 2016 um 14:15
geschrieben:


Add resource manageemnt APIs fro pinctrl_register() and pinctrl_unregister()
and use these new APIs on hw driver to reduce the error path code and
remove callback for driver.

just for interest: why didn't you patch freescale/pinctrl-mxs.c?



The remove callback is implemented as:

int mxs_pinctrl_remove(struct platform_device *pdev)
{
        struct mxs_pinctrl_data *d = platform_get_drvdata(pdev);

        pinctrl_unregister(d->pctl);
        iounmap(d->base);

        return 0;
}


So if I use devm_pinctrl_register() then the sequence will be different like
    iounmap()
    pinctrl_unregister()

And I did not want to change the sequence as dont know the side effect until I test it on actual platform which is not there with me.

--
To unsubscribe from this list: send the line "unsubscribe linux-doc" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Linux FS]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]     [Linux Resources]

  Powered by Linux