]> git.karo-electronics.de Git - linux-beck.git/commitdiff
staging:iio:trigger:sysfs trigger: Add a release function to avoid warning on module...
authorJonathan Cameron <jic23@cam.ac.uk>
Wed, 24 Aug 2011 16:28:35 +0000 (17:28 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 24 Aug 2011 21:23:41 +0000 (14:23 -0700)
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>
drivers/staging/iio/trigger/iio-trig-sysfs.c

index 346b30c2f7f737ff39f2b71229a4296cc426db9a..174dc65709d5d02d53c5f15c458e35e3ccd03c55 100644 (file)
@@ -77,9 +77,16 @@ static const struct attribute_group *iio_sysfs_trig_groups[] = {
        NULL
 };
 
+
+/* Nothing to actually do upon release */
+static void iio_trigger_sysfs_release(struct device *dev)
+{
+}
+
 static struct device iio_sysfs_trig_dev = {
        .bus = &iio_bus_type,
        .groups = iio_sysfs_trig_groups,
+       .release = &iio_trigger_sysfs_release,
 };
 
 static ssize_t iio_sysfs_trigger_poll(struct device *dev,