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.

reset: warn on reset-gpio release

While we implement an empty .release() callback for reset-gpio (driver
core requires it), this function will never actually be called as nobody
ever removes the device and the last reference is not dropped anywhere.

This is by design - once created, the reset-gpio device stays in memory.
Make the .release() callback emit a warning, should it ever be called
due to a programming bug.

Reviewed-by: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>

authored by

Bartosz Golaszewski and committed by
Philipp Zabel
20adbf3b 1acd4663

+1 -1
+1 -1
drivers/reset/core.c
··· 820 820 821 821 static void reset_gpio_aux_device_release(struct device *dev) 822 822 { 823 - 823 + WARN(1, "reset-gpio device %s should never have been removed", dev_name(dev)); 824 824 } 825 825 826 826 static int reset_create_gpio_aux_device(struct reset_gpio_lookup *rgpio_dev,