Skip to contentSkip to conversation

HID: prodikeys: add USB_HID dependency

PATCH In review Arnd Bergmann 2 participants 2 messages Dec 3, 2021 – Dec 6, 2021 HID

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 HID: prodikeys: add USB_HID dependency

From: Arnd Bergmann <[email protected]>

Like with the other drivers that recently got fixed, this one fails to link if USB_HID is disabled or unreachable:

ERROR: modpost: "usb_hid_driver" [drivers/hid/hid-prodikeys.ko] undefined!

Fixes f237d9028f84 ("HID: add USB_HID dependancy on some USB HID drivers")
---
 drivers/hid/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/hid/Kconfig +1 -1
index 74ce789f8636..48d18559670f 100644
@@ -246,7 +246,7 @@ config HID_MACALLY
 
 config HID_PRODIKEYS
 	tristate "Prodikeys PC-MIDI Keyboard support"
-	depends on HID && SND
+	depends on USB_HID && SND
 	select SND_RAWMIDI
 	help
 	Support for Prodikeys PC-MIDI Keyboard device support.
Signature · 1 line
2.29.2
#1 lore raw

Hi Arnd,

Quoted 11 lines · Arnd Bergmann

From: Arnd Bergmann <[email protected]>

Like with the other drivers that recently got fixed, this one fails to link if USB_HID is disabled or unreachable:

ERROR: modpost: "usb_hid_driver" [drivers/hid/hid-prodikeys.ko] undefined!

Fixes f237d9028f84 ("HID: add USB_HID dependancy on some USB HID drivers")

---

Looks like you already been beaten to it by Greg:
https://git.kernel.org/pub/scm/linux/kernel/git/hid/hid.git/commit/?h=for-5.16/upstream-fixes&id=30cb3c2ad24b66fb7639a6d1f4390c74d6e68f94

But thanks!

Cheers,
Benjamin

Quoted 19 lines
 drivers/hid/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/hid/Kconfig +1 -2
index 74ce789f8636..48d18559670f 100644
@@ -246,7 +246,7 @@ config HID_MACALLY
 
 config HID_PRODIKEYS
        tristate "Prodikeys PC-MIDI Keyboard support"
-       depends on HID && SND
+       depends on USB_HID && SND
        select SND_RAWMIDI
        help
        Support for Prodikeys PC-MIDI Keyboard device support.
--

2.29.2