commit 1590ad7b52714 ("[media] media-device: split media initialization
and registration") moved the media controller register to a
separate function. That caused the following compilation issue,
if !CONFIG_MEDIA_CONTROLLER:

vim +445 drivers/media/usb/au0828/au0828-core.c

   439          if (retval) {
   440                  pr_err("%s() au0282_dev_register failed to create 
graph\n",
   441                         __func__);
   442                  goto done;
   443          }
   444
 > 445          retval = media_device_register(dev->media_dev);
   446
   447  done:
   448          if (retval < 0)

Reported-by: kbuild test robot <fengguang...@intel.com>
Signed-off-by: Mauro Carvalho Chehab <mche...@osg.samsung.com>
---
 drivers/media/usb/au0828/au0828-core.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/media/usb/au0828/au0828-core.c 
b/drivers/media/usb/au0828/au0828-core.c
index 2f91bbc633b4..101d32954fe8 100644
--- a/drivers/media/usb/au0828/au0828-core.c
+++ b/drivers/media/usb/au0828/au0828-core.c
@@ -458,7 +458,9 @@ static int au0828_usb_probe(struct usb_interface *interface,
                goto done;
        }
 
+#ifdef CONFIG_MEDIA_CONTROLLER
        retval = media_device_register(dev->media_dev);
+#endif
 
 done:
        if (retval < 0)
-- 
2.5.0

--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to