mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
mailbox: imx: Use device-managed registration API
Get rid of some boilerplate driver removal code by using the newly added device-managed registration API. Reviewed-by: Oleksij Rempel <[email protected]> Signed-off-by: Thierry Reding <[email protected]> Signed-off-by: Jassi Brar <[email protected]>
This commit is contained in:
parent
ad3e7f9651
commit
4013286c72
1 changed files with 1 additions and 2 deletions
|
|
@ -324,14 +324,13 @@ static int imx_mu_probe(struct platform_device *pdev)
|
|||
|
||||
imx_mu_init_generic(priv);
|
||||
|
||||
return mbox_controller_register(&priv->mbox);
|
||||
return devm_mbox_controller_register(dev, &priv->mbox);
|
||||
}
|
||||
|
||||
static int imx_mu_remove(struct platform_device *pdev)
|
||||
{
|
||||
struct imx_mu_priv *priv = platform_get_drvdata(pdev);
|
||||
|
||||
mbox_controller_unregister(&priv->mbox);
|
||||
clk_disable_unprepare(priv->clk);
|
||||
|
||||
return 0;
|
||||
|
|
|
|||
Loading…
Reference in a new issue