From 06cfd223bfb0998cab2b2e62c13a4189a2f44e21 Mon Sep 17 00:00:00 2001 From: Jishnu Prakash Date: Thu, 15 Dec 2022 12:22:27 +0530 Subject: [PATCH] iio: qcom-spmi-adc5: remove the remove callback Remove the driver remove callback as there is no significant cleanup action done in it for the ADC driver. Change-Id: I2a11ac4d15cc94e652c7b238da4cc47f28dbf8a3 Signed-off-by: Jishnu Prakash --- drivers/iio/adc/qcom-spmi-adc5.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/drivers/iio/adc/qcom-spmi-adc5.c b/drivers/iio/adc/qcom-spmi-adc5.c index 7c0dd5e3fffe..d4c1e58c0d21 100644 --- a/drivers/iio/adc/qcom-spmi-adc5.c +++ b/drivers/iio/adc/qcom-spmi-adc5.c @@ -1,6 +1,7 @@ // SPDX-License-Identifier: GPL-2.0 /* * Copyright (c) 2018-2021, The Linux Foundation. All rights reserved. + * Copyright (c) 2022, Qualcomm Innovation Center, Inc. All rights reserved. */ #include @@ -1454,21 +1455,12 @@ static int adc5_probe(struct platform_device *pdev) return devm_iio_device_register(dev, indio_dev); } -static int adc5_exit(struct platform_device *pdev) -{ - struct adc5_chip *adc = platform_get_drvdata(pdev); - - mutex_destroy(&adc->lock); - return 0; -} - static struct platform_driver adc5_driver = { .driver = { .name = "qcom-spmi-adc5", .of_match_table = adc5_match_table, }, .probe = adc5_probe, - .remove = adc5_exit, }; module_platform_driver(adc5_driver);