From: Jonathan Cameron Date: Wed, 24 Aug 2011 16:28:35 +0000 (+0100) Subject: staging:iio:trigger:sysfs trigger: Add a release function to avoid warning on module... X-Git-Tag: MMI-PSA29.97-13-9~18234^2^2~864^2~127 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=9c0c22bd1699a800771370f85ee97c9ab388247e;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git 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 Signed-off-by: Greg Kroah-Hartman --- 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,