Commit 38716247 authored by Uwe Kleine-König's avatar Uwe Kleine-König Committed by Chanwoo Choi
Browse files

extcon: fsa9480: Drop no-op remove function



A remove callback that just returns 0 is equivalent to no callback at all
as can be seen in i2c_device_remove(). So simplify accordingly.

Signed-off-by: default avatarUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: default avatarChanwoo Choi <cw00.choi@samsung.com>
parent 32346491
Loading
Loading
Loading
Loading
+0 −6
Original line number Diff line number Diff line
@@ -324,11 +324,6 @@ static int fsa9480_probe(struct i2c_client *client,
	return 0;
}

static int fsa9480_remove(struct i2c_client *client)
{
	return 0;
}

#ifdef CONFIG_PM_SLEEP
static int fsa9480_suspend(struct device *dev)
{
@@ -376,7 +371,6 @@ static struct i2c_driver fsa9480_i2c_driver = {
		.of_match_table = fsa9480_of_match,
	},
	.probe			= fsa9480_probe,
	.remove			= fsa9480_remove,
	.id_table		= fsa9480_id,
};