linux/arch/x86/platform/olpc
Dawei Li 6c0eb5ba35 ACPI: make remove callback of ACPI driver void
For bus-based driver, device removal is implemented as:
1 device_remove()->
2   bus->remove()->
3     driver->remove()

Driver core needs no inform from callee(bus driver) about the
result of remove callback. In that case, commit fc7a6209d5
("bus: Make remove callback return void") forces bus_type::remove
be void-returned.

Now we have the situation that both 1 & 2 of calling chain are
void-returned, so it does not make much sense for 3(driver->remove)
to return non-void to its caller.

So the basic idea behind this change is making remove() callback of
any bus-based driver to be void-returned.

This change, for itself, is for device drivers based on acpi-bus.

Acked-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Acked-by: Lee Jones <lee@kernel.org>
Acked-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Dawei Li <set_pte_at@outlook.com>
Reviewed-by: Maximilian Luz <luzmaximilian@gmail.com>  # for drivers/platform/surface/*
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
2022-11-23 19:11:22 +01:00
..
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
olpc_dt.c x86: Fix various typos in comments, take #2 2021-03-21 23:50:28 +01:00
olpc_ofw.c mm: reorder includes after introduction of linux/pgtable.h 2020-06-09 09:39:13 -07:00
olpc-xo1-pm.c x86: olpc-xo1-pm: Remove invocation of MFD's .enable()/.disable() call-backs 2019-11-11 08:45:03 +00:00
olpc-xo1-rtc.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152 2019-05-30 11:26:32 -07:00
olpc-xo1-sci.c x86/olpc: fix 'logical not is only applied to the left hand side' 2022-07-15 08:30:16 -07:00
olpc-xo15-sci.c ACPI: make remove callback of ACPI driver void 2022-11-23 19:11:22 +01:00
olpc.c x86/platform/olpc: Correct ifdef symbol to intended CONFIG_OLPC_XO15_SCI 2021-10-06 18:46:06 +02:00
xo1-wakeup.S x86: Prepare asm files for straight-line-speculation 2021-12-08 12:25:37 +01:00