From: Uwe Kleine-König Date: Mon, 12 Dec 2022 22:25:48 +0000 (+0100) Subject: soc: mediatek: mutex: Drop empty platform remove function X-Git-Tag: v6.3-rc1~61^2~8^2~40 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=169fa2ad8daa1cec78a8f9f2df1b57bc125509a6;p=thirdparty%2Fkernel%2Flinux.git soc: mediatek: mutex: Drop empty platform remove function A remove callback just returning 0 is equivalent to no remove callback at all. So drop the useless function. Signed-off-by: Uwe Kleine-König Reviewed-by: AngeloGioacchino Del Regno Signed-off-by: Matthias Brugger --- diff --git a/drivers/soc/mediatek/mtk-mutex.c b/drivers/soc/mediatek/mtk-mutex.c index c1a33d52038e0..85f7fd67d7c66 100644 --- a/drivers/soc/mediatek/mtk-mutex.c +++ b/drivers/soc/mediatek/mtk-mutex.c @@ -832,11 +832,6 @@ static int mtk_mutex_probe(struct platform_device *pdev) return 0; } -static int mtk_mutex_remove(struct platform_device *pdev) -{ - return 0; -} - static const struct of_device_id mutex_driver_dt_match[] = { { .compatible = "mediatek,mt2701-disp-mutex", .data = &mt2701_mutex_driver_data}, @@ -866,7 +861,6 @@ MODULE_DEVICE_TABLE(of, mutex_driver_dt_match); static struct platform_driver mtk_mutex_driver = { .probe = mtk_mutex_probe, - .remove = mtk_mutex_remove, .driver = { .name = "mediatek-mutex", .owner = THIS_MODULE,