Skip to contentSkip to conversation

driver/gpio: gpio-cherryview: call correct api to remove gpio device

PATCH In review Hongzhan Chen 2 participants 2 messages Sep 1, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 driver/gpio: gpio-cherryview: call correct api to remove gpio device

call correct api to remove gpio device.

kernel/drivers/gpio/gpio-cherryview.c +1 -1
index 826faff3a..1234a3e12 100644
@@ -35,7 +35,7 @@ module_init(cherryview_gpio_init);
 
 static void __exit cherryview_gpio_exit(void)
 {
-	rtdm_gpiochip_remove(RTDM_SUBCLASS_CHERRYVIEW);
+	rtdm_gpiochip_remove_by_type(RTDM_SUBCLASS_CHERRYVIEW);
 }
 module_exit(cherryview_gpio_exit);
 
Signature · 1 line
2.17.1
#1 lore raw
Quoted 10 lines · Hongzhan Chen via Xenomai

call correct api to remove gpio device.

kernel/drivers/gpio/gpio-cherryview.c +0 -0
index 826faff3a..1234a3e12 100644

kernel/drivers/gpio/gpio-cherryview.c module_init(cherryview_gpio_init); · line 41

Quoted 8 lines
kernel/drivers/gpio/gpio-cherryview.c +1 -1
@@ -35,7 +35,7 @@ module_init(cherryview_gpio_init);
 
 static void __exit cherryview_gpio_exit(void)
 {
-	rtdm_gpiochip_remove(RTDM_SUBCLASS_CHERRYVIEW);
+	rtdm_gpiochip_remove_by_type(RTDM_SUBCLASS_CHERRYVIEW);
 }
 module_exit(cherryview_gpio_exit);
 

Oh, indeed. Please send a new version of the affected commit (top of next right now anyway). And please also update the kernel configs for CI (xenomai/.gitlab-ci.yml) at this chance so that this new driver is built whenever possible.

We may also want to enable it in xenomai-images eventually.

Jan

Signature · 2 lines
Siemens AG, T RDA IOT
Corporate Competence Center Embedded Linux