Revert "Input: ioc3kbd - convert to platform remove callback returning void"
This reverts commit 0096d223f7
which is
commit 150e792dee9ca8416f3d375e48f2f4d7f701fc6b upstream.
It breaks the build and shouldn't be here, it was applied to make a
follow-up one apply easier.
Reported-by: Dominique Martinet <dominique.martinet@atmark-techno.com>
Link: https://lore.kernel.org/r/Zs6hwNxk7QkCe7AW@codewreck.org
Cc: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Link: https://lore.kernel.org/r/20230920125829.1478827-37-u.kleine-koenig@pengutronix.de
Cc: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Cc: Sasha Levin <sashal@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
777d9c223e
commit
f2b6cd1335
@ -190,7 +190,7 @@ static int ioc3kbd_probe(struct platform_device *pdev)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static void ioc3kbd_remove(struct platform_device *pdev)
|
||||
static int ioc3kbd_remove(struct platform_device *pdev)
|
||||
{
|
||||
struct ioc3kbd_data *d = platform_get_drvdata(pdev);
|
||||
|
||||
@ -198,6 +198,8 @@ static void ioc3kbd_remove(struct platform_device *pdev)
|
||||
|
||||
serio_unregister_port(d->kbd);
|
||||
serio_unregister_port(d->aux);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static const struct platform_device_id ioc3kbd_id_table[] = {
|
||||
@ -208,7 +210,7 @@ MODULE_DEVICE_TABLE(platform, ioc3kbd_id_table);
|
||||
|
||||
static struct platform_driver ioc3kbd_driver = {
|
||||
.probe = ioc3kbd_probe,
|
||||
.remove_new = ioc3kbd_remove,
|
||||
.remove = ioc3kbd_remove,
|
||||
.id_table = ioc3kbd_id_table,
|
||||
.driver = {
|
||||
.name = "ioc3-kbd",
|
||||
|
Loading…
Reference in New Issue
Block a user