Commit 9c0c22bd authored by Jonathan Cameron's avatar Jonathan Cameron Committed by Greg Kroah-Hartman

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: default avatarJonathan Cameron <jic23@cam.ac.uk>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 82db4249
...@@ -77,9 +77,16 @@ static const struct attribute_group *iio_sysfs_trig_groups[] = { ...@@ -77,9 +77,16 @@ static const struct attribute_group *iio_sysfs_trig_groups[] = {
NULL NULL
}; };
/* Nothing to actually do upon release */
static void iio_trigger_sysfs_release(struct device *dev)
{
}
static struct device iio_sysfs_trig_dev = { static struct device iio_sysfs_trig_dev = {
.bus = &iio_bus_type, .bus = &iio_bus_type,
.groups = iio_sysfs_trig_groups, .groups = iio_sysfs_trig_groups,
.release = &iio_trigger_sysfs_release,
}; };
static ssize_t iio_sysfs_trigger_poll(struct device *dev, static ssize_t iio_sysfs_trigger_poll(struct device *dev,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment