Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

mfd: asic3: Make asic3_gpio_remove() return void

Up to now asic3_gpio_remove() returns zero unconditionally. This makes it
easier to see in the caller that there is no error to handle.

This is a preparation for making platform remove callbacks return void.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Link: https://lore.kernel.org/r/20220530192430.2108217-2-u.kleine-koenig@pengutronix.de

authored by

Uwe Kleine-König and committed by
Lee Jones
2598f6ec 2cc28500

+3 -6
+3 -6
drivers/mfd/asic3.c
··· 596 596 return gpiochip_add_data(&asic->gpio, asic); 597 597 } 598 598 599 - static int asic3_gpio_remove(struct platform_device *pdev) 599 + static void asic3_gpio_remove(struct platform_device *pdev) 600 600 { 601 601 struct asic3 *asic = platform_get_drvdata(pdev); 602 602 603 603 gpiochip_remove(&asic->gpio); 604 - return 0; 605 604 } 606 605 607 606 static void asic3_clk_enable(struct asic3 *asic, struct asic3_clk *clk) ··· 1029 1030 1030 1031 static int asic3_remove(struct platform_device *pdev) 1031 1032 { 1032 - int ret; 1033 1033 struct asic3 *asic = platform_get_drvdata(pdev); 1034 1034 1035 1035 asic3_set_register(asic, ASIC3_OFFSET(EXTCF, SELECT), ··· 1036 1038 1037 1039 asic3_mfd_remove(pdev); 1038 1040 1039 - ret = asic3_gpio_remove(pdev); 1040 - if (ret < 0) 1041 - return ret; 1041 + asic3_gpio_remove(pdev); 1042 + 1042 1043 asic3_irq_remove(pdev); 1043 1044 1044 1045 asic3_write_register(asic, ASIC3_OFFSET(CLOCK, SEL), 0);