usb: Do not compile USB_STORAGE with BLK && !DM_USB
authorAlexander Graf <agraf@suse.de>
Fri, 19 Oct 2018 12:41:01 +0000 (14:41 +0200)
committerAlexander Graf <agraf@suse.de>
Sun, 2 Dec 2018 20:59:37 +0000 (21:59 +0100)
commitdc03b704f4364da6df6a86aafccc3828ade8ed43
tree2c61b5025181641836e5da7250d5942fc97a5217
parente1fec152fe53ca8ee922fd0ed4d2c197d4f641bf
usb: Do not compile USB_STORAGE with BLK && !DM_USB

The USB storage driver does not compile when CONFIG_BLK is set,
but DM_USB is not set, as we're missing the DM device links for
CONFIG_BLK enabled code paths.

So far it looks like nobody fell into this trap, because no board
enabled CONFIG_BLK and CONFIG_USB_STORAGE while not enabling
CONFIG_DM_USB, but we should still reflect that dependency properly
in Kconfig so that implicit enabling of CONFIG_USB_STORAGE works.

Signed-off-by: Alexander Graf <agraf@suse.de>
drivers/usb/Kconfig