diff --git a/drivers/mailbox/phytium_mailbox.c b/drivers/mailbox/phytium_mailbox.c index afab8f40155674..67b80793e9b78b 100644 --- a/drivers/mailbox/phytium_mailbox.c +++ b/drivers/mailbox/phytium_mailbox.c @@ -170,13 +170,11 @@ static int phytium_mbox_probe(struct platform_device *pdev) return err; } -static int phytium_mbox_remove(struct platform_device *pdev) +static void phytium_mbox_remove(struct platform_device *pdev) { struct phytium_mbox *mbox = platform_get_drvdata(pdev); mbox_controller_unregister(&mbox->mbox); - - return 0; } static struct platform_driver phytium_mbox_driver = {