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

staging:iio:trigger:sysfs trigger: Add a release function to avoid warning on module removal.

The device is static and should never actually be deleted. The release
is just to avoid a warning from the kernel.

Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

authored by

Jonathan Cameron and committed by
Greg Kroah-Hartman
9c0c22bd 82db4249

+7
+7
drivers/staging/iio/trigger/iio-trig-sysfs.c
··· 77 77 NULL 78 78 }; 79 79 80 + 81 + /* Nothing to actually do upon release */ 82 + static void iio_trigger_sysfs_release(struct device *dev) 83 + { 84 + } 85 + 80 86 static struct device iio_sysfs_trig_dev = { 81 87 .bus = &iio_bus_type, 82 88 .groups = iio_sysfs_trig_groups, 89 + .release = &iio_trigger_sysfs_release, 83 90 }; 84 91 85 92 static ssize_t iio_sysfs_trigger_poll(struct device *dev,