[media] v4l: tvp5150: Compile tvp5150_link_setup out if !CONFIG_MEDIA_CONTROLLER
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Thu, 8 Dec 2016 22:22:41 +0000 (20:22 -0200)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Mon, 12 Dec 2016 09:43:32 +0000 (07:43 -0200)
commit406ff67d5820f592ff2b5ac2643a75f001b1d21f
treea26dca5192839824aa594b9de68502d8083c8bb2
parentc6d48134cb2682516ed50ca0cea2675d27d985e8
[media] v4l: tvp5150: Compile tvp5150_link_setup out if !CONFIG_MEDIA_CONTROLLER

The function is only referenced as a handler in the tvp5150_sd_media_ops
structure, which is only used when CONFIG_MEDIA_CONTROLLER is set. Don't
define the function and the structure when the configuration option is
unset to avoid an unused function warning.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/i2c/tvp5150.c