public inbox for linux-arm-kernel@lists.infradead.org
 help / color / mirror / Atom feed
From: arnd@arndb.de (Arnd Bergmann)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] input: sur40: fix v4l dependency
Date: Tue, 19 May 2015 15:08:05 +0200	[thread overview]
Message-ID: <6880566.G7eZ6NqpSp@wuerfel> (raw)

The recently added support for the raw video stream in the SUR40
driver fails to link if the driver is built-in but v4l2 is not:

drivers/built-in.o: In function `sur40_disconnect':
:(.text+0xf2ed2): undefined reference to `video_unregister_device'
:(.text+0xf2eda): undefined reference to `v4l2_device_unregister'
:(.text+0xf2ee2): undefined reference to `vb2_dma_sg_cleanup_ctx'

This adds an explicit dependency, to avoid the broken build.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Fixes: e831cd251fb ("[media] add raw video stream support for Samsung SUR40")

diff --git a/drivers/input/touchscreen/Kconfig b/drivers/input/touchscreen/Kconfig
index cee8ffe4ffd9..90935f3918db 100644
--- a/drivers/input/touchscreen/Kconfig
+++ b/drivers/input/touchscreen/Kconfig
@@ -980,6 +980,7 @@ config TOUCHSCREEN_SUN4I
 config TOUCHSCREEN_SUR40
 	tristate "Samsung SUR40 (Surface 2.0/PixelSense) touchscreen"
 	depends on USB && MEDIA_USB_SUPPORT && HAS_DMA
+	depends on VIDEO_V4L2
 	select INPUT_POLLDEV
 	select VIDEOBUF2_DMA_SG
 	help

                 reply	other threads:[~2015-05-19 13:08 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=6880566.G7eZ6NqpSp@wuerfel \
    --to=arnd@arndb.de \
    --cc=linux-arm-kernel@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox