Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[media] horus3a: Fix horus3a_attach() function parameters

If CONFIG_DVB_HORUS3A is disabled a stub static inline function is
defined that just prints a warning about the driver being disabled
but the function parameters were wrong which caused a build error.

Fixes: a5d32b358254f ("[media] horus3a: Sony Horus3A DVB-S/S2 tuner driver")

Reported-by: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: Javier Martinez Canillas <javier@osg.samsung.com>

authored by

Javier Martinez Canillas and committed by
Mauro Carvalho Chehab
ebdd4b7e 6ff33f39

+2 -2
+2 -2
drivers/media/dvb-frontends/horus3a.h
··· 46 46 const struct horus3a_config *config, 47 47 struct i2c_adapter *i2c); 48 48 #else 49 - static inline struct dvb_frontend *horus3a_attach( 50 - const struct cxd2820r_config *config, 49 + static inline struct dvb_frontend *horus3a_attach(struct dvb_frontend *fe, 50 + const struct horus3a_config *config, 51 51 struct i2c_adapter *i2c) 52 52 { 53 53 printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);