ALSA: pci: depend on ZONE_DMA
authorDan Williams <[email protected]>
Thu, 12 Nov 2015 20:13:57 +0000 (12:13 -0800)
committerTakashi Iwai <[email protected]>
Thu, 12 Nov 2015 20:37:05 +0000 (21:37 +0100)
commit2db1a57986d37653583e67ccbf13082aadc8f25d
tree52f3e4452e7562bf339884b1e6302a6db06346ac
parent909cadc6c8c7e52149fb4687453277d6cabe8c80
ALSA: pci: depend on ZONE_DMA

There are several sound drivers that 'select ZONE_DMA'.  This is
backwards as ZONE_DMA is an architecture capability exported to drivers.
Switch the polarity of the dependency to disable these drivers when the
architecture does not support ZONE_DMA.  This was discovered in the
context of testing/enabling devm_memremap_pages() which depends on
ZONE_DEVICE.  ZONE_DEVICE in turn depends on !ZONE_DMA.

Reported-by: Jeff Moyer <[email protected]>
Signed-off-by: Dan Williams <[email protected]>
Signed-off-by: Takashi Iwai <[email protected]>
sound/pci/Kconfig