media: Don't default-enable "ancillary driver autoselect" if EMBEDDED
authorEzequiel Garcia <ezequiel@collabora.com>
Mon, 15 Jul 2019 21:23:15 +0000 (17:23 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Thu, 25 Jul 2019 15:48:22 +0000 (11:48 -0400)
Admittedly, it's not easy to say what CONFIG_EMBEDDED really should be
doing, just as it's not easy to say what is "embedded".

In any case, the very description of MEDIA_SUBDRV_AUTOSELECT
specifies that embedded systems usually don't want
to enable this autoselect option.

Therefore, drop the default-yes, when the CONFIG_EMBEDDED is chosen.

Signed-off-by: Ezequiel Garcia <ezequiel@collabora.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/Kconfig

index 21cd9c02960b8b96496b739159dac0c9a16a4e44..8404e80aa38eeab741e78bd7ef0cdbe4f1743fb9 100644 (file)
@@ -190,7 +190,7 @@ config MEDIA_SUBDRV_AUTOSELECT
        depends on HAS_IOMEM
        select I2C
        select I2C_MUX
-       default y
+       default y if !EMBEDDED
        help
          By default, a media driver auto-selects all possible ancillary
          devices such as tuners, sensors, video encoders/decoders and