summaryrefslogtreecommitdiff
path: root/drivers/hid/hid-multitouch.c
diff options
context:
space:
mode:
authorNicholas Krause <xerofoify@gmail.com>2016-02-04 18:52:40 +0300
committerJiri Kosina <jkosina@suse.cz>2016-02-05 16:37:19 +0300
commit0c4b3c637ca5fe20fe513dbdee6f62166c97fed1 (patch)
treed2562fe53c4c78b608b29bf19f7d4b2e7244cd8d /drivers/hid/hid-multitouch.c
parentd542176f94c790016cc340dff74ba00d57410728 (diff)
downloadlinux-0c4b3c637ca5fe20fe513dbdee6f62166c97fed1.tar.xz
HID: multitouch: warn on sysfs group creation failure
This adds a warning message stating that the sysfs group was not able to be created for the passed hid_device structure pointer with dev_warn. Signed-off-by: Nicholas Krause <xerofoify@gmail.com> Reviewed-by: Benjamin Tissoires <benajmin.tissoires@redhat.com> [jkosina@suse.cz: massaged changelog a bit] [jkosina@suse.cz: reformatted source] Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/hid/hid-multitouch.c')
-rw-r--r--drivers/hid/hid-multitouch.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/hid/hid-multitouch.c b/drivers/hid/hid-multitouch.c
index 296d4991560e..6adb788bbfca 100644
--- a/drivers/hid/hid-multitouch.c
+++ b/drivers/hid/hid-multitouch.c
@@ -1133,6 +1133,9 @@ static int mt_probe(struct hid_device *hdev, const struct hid_device_id *id)
return ret;
ret = sysfs_create_group(&hdev->dev.kobj, &mt_attribute_group);
+ if (ret)
+ dev_warn(&hdev->dev, "Cannot allocate sysfs group for %s\n",
+ hdev->name);
mt_set_maxcontacts(hdev);
mt_set_input_mode(hdev);