HID: cp2112: add HIDRAW dependency
authorSébastien Szymanski <sebastien.szymanski@armadeus.com>
Thu, 2 Nov 2017 11:12:43 +0000 (12:12 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 21 Nov 2017 08:49:23 +0000 (09:49 +0100)
commit740ef39bce15d7d74a5b02b7b0e6abb472a9c76c
tree10bcaa61dff9961cf6c25a9da07b40ebe1b6a81a
parent417b152ef12fe4cfed7453c7e475682629e94f6f
HID: cp2112: add HIDRAW dependency

commit cde3076bdc38bf436e517a379759a9092c6ffd4f upstream.

Otherwise, with HIDRAW=n, the probe function crashes because of null
dereference of hdev->hidraw.

Fixes: 42cb6b35b9e6 ("HID: cp2112: use proper hidraw name with minor number")
Signed-off-by: Sébastien Szymanski <sebastien.szymanski@armadeus.com>
Acked-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/hid/Kconfig