mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-18 08:35:08 +08:00
982fe2e093
dw_mci_pltfm_remove() returned zero unconditionally. Make it return void instead which makes its semantics a bit clearer. Convert the drivers that use this function as .remove() callback to .remove_new() which has the right prototype. This helps getting rid of the platform_driver's remove callback that returns an int (which is error prone). The other users didn't check the return value anyhow. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Link: https://lore.kernel.org/r/20230505221506.1247424-1-u.kleine-koenig@pengutronix.de Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
17 lines
481 B
C
17 lines
481 B
C
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
|
/*
|
|
* Synopsys DesignWare Multimedia Card Interface Platform driver
|
|
*
|
|
* Copyright (C) 2012, Samsung Electronics Co., Ltd.
|
|
*/
|
|
|
|
#ifndef _DW_MMC_PLTFM_H_
|
|
#define _DW_MMC_PLTFM_H_
|
|
|
|
extern int dw_mci_pltfm_register(struct platform_device *pdev,
|
|
const struct dw_mci_drv_data *drv_data);
|
|
extern void dw_mci_pltfm_remove(struct platform_device *pdev);
|
|
extern const struct dev_pm_ops dw_mci_pltfm_pmops;
|
|
|
|
#endif /* _DW_MMC_PLTFM_H_ */
|