diff options
author | Jonathan Cameron | 2011-08-24 18:28:35 +0200 |
---|---|---|
committer | Greg Kroah-Hartman | 2011-08-24 23:23:41 +0200 |
commit | 9c0c22bd1699a800771370f85ee97c9ab388247e (patch) | |
tree | 08002297cb5aa2b7e9f69dc45a167412fbeedf02 /drivers | |
parent | staging:iio:triggers reorder module put and device put to ensure that the ops... (diff) | |
download | kernel-qcow2-linux-9c0c22bd1699a800771370f85ee97c9ab388247e.tar.gz kernel-qcow2-linux-9c0c22bd1699a800771370f85ee97c9ab388247e.tar.xz kernel-qcow2-linux-9c0c22bd1699a800771370f85ee97c9ab388247e.zip |
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/staging/iio/trigger/iio-trig-sysfs.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/staging/iio/trigger/iio-trig-sysfs.c b/drivers/staging/iio/trigger/iio-trig-sysfs.c index 346b30c2f7f7..174dc65709d5 100644 --- a/drivers/staging/iio/trigger/iio-trig-sysfs.c +++ b/drivers/staging/iio/trigger/iio-trig-sysfs.c @@ -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, |