public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] media: i2c: thp7312: select CONFIG_FW_LOADER
@ 2024-01-03 15:58 Arnd Bergmann
  2024-01-03 17:48 ` Laurent Pinchart
  0 siblings, 1 reply; 4+ messages in thread
From: Arnd Bergmann @ 2024-01-03 15:58 UTC (permalink / raw)
  To: Mauro Carvalho Chehab, Laurent Pinchart, Paul Elder, Hans Verkuil,
	Sakari Ailus
  Cc: Arnd Bergmann, Hans de Goede, Tomi Valkeinen, Alain Volmat,
	Mehdi Djait, linux-media, linux-kernel

From: Arnd Bergmann <arnd@arndb.de>

The recently added driver uses the firmware loader mechanism but causes
a link failure when that is in a loadable module while thp7312 itself
is built-in:

arm-linux-gnueabi-ld: drivers/media/i2c/thp7312.o: in function `thp7312_probe':
thp7312.c:(.text+0x4164): undefined reference to `firmware_upload_register'

Select the required Kconfig symbol. Note that the driver specifically
needs the firmware upload interface that is controlled by CONFIG_FW_UPLOAD,
but there is no link failure when that is disabled because the interfaces
are stubbed out here.

Fixes: 7a52ab415b43 ("media: i2c: Add driver for THine THP7312")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
---
 drivers/media/i2c/Kconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/media/i2c/Kconfig b/drivers/media/i2c/Kconfig
index 78a87331686e..4c3435921f19 100644
--- a/drivers/media/i2c/Kconfig
+++ b/drivers/media/i2c/Kconfig
@@ -674,6 +674,7 @@ menu "Camera ISPs"
 config VIDEO_THP7312
 	tristate "THine THP7312 support"
 	depends on I2C
+	select FW_LOADER
 	select MEDIA_CONTROLLER
 	select V4L2_CCI_I2C
 	select V4L2_FWNODE
-- 
2.39.2


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-01-03 21:07 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-01-03 15:58 [PATCH] media: i2c: thp7312: select CONFIG_FW_LOADER Arnd Bergmann
2024-01-03 17:48 ` Laurent Pinchart
2024-01-03 20:06   ` Randy Dunlap
2024-01-03 21:07     ` Laurent Pinchart

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox