diff options
| author | Uwe Kleine-König <[email protected]> | 2021-01-26 21:53:39 +0000 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2021-02-09 11:12:43 +0000 |
| commit | 5f6805327982d1fd45355730e9d1adda616b995b (patch) | |
| tree | d40c5aa5511ed26dd382ab3dcec6159d436397fe /drivers/firmware/google/framebuffer-coreboot.c | |
| parent | firmware: xilinx: Use explicit values for all enum values (diff) | |
| download | kernel-5f6805327982d1fd45355730e9d1adda616b995b.tar.gz kernel-5f6805327982d1fd45355730e9d1adda616b995b.zip | |
firmware: google: make coreboot driver's remove callback return void
All coreboot drivers return 0 unconditionally in their remove callback.
Also the device core ignores the return value of the struct
bus_type::remove(), so make the coreboot remove callback return void
instead of giving driver authors the illusion they could return an error
code here.
All drivers are adapted accordingly.
Signed-off-by: Uwe Kleine-König <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'drivers/firmware/google/framebuffer-coreboot.c')
| -rw-r--r-- | drivers/firmware/google/framebuffer-coreboot.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/firmware/google/framebuffer-coreboot.c b/drivers/firmware/google/framebuffer-coreboot.c index 916f26adc595..c6dcc1ef93ac 100644 --- a/drivers/firmware/google/framebuffer-coreboot.c +++ b/drivers/firmware/google/framebuffer-coreboot.c @@ -72,13 +72,11 @@ static int framebuffer_probe(struct coreboot_device *dev) return PTR_ERR_OR_ZERO(pdev); } -static int framebuffer_remove(struct coreboot_device *dev) +static void framebuffer_remove(struct coreboot_device *dev) { struct platform_device *pdev = dev_get_drvdata(&dev->dev); platform_device_unregister(pdev); - - return 0; } static struct coreboot_driver framebuffer_driver = { |
