diff options
author | Mauro Carvalho Chehab <m.chehab@samsung.com> | 2014-03-09 09:46:39 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <m.chehab@samsung.com> | 2014-03-11 07:37:15 -0300 |
commit | d1f2aae3d91ba107b68540aad7fbf188b734b566 (patch) | |
tree | 5d63fc28ab16e7cd750c4e0f99ea6888fb2fa950 /drivers/media/dvb-frontends/drx39xyj/drx39xxj.h | |
parent | 87bf0e54872097de30752b8dc0f90eff8c53a11d (diff) | |
download | linux-stable-d1f2aae3d91ba107b68540aad7fbf188b734b566.tar.gz linux-stable-d1f2aae3d91ba107b68540aad7fbf188b734b566.tar.bz2 linux-stable-d1f2aae3d91ba107b68540aad7fbf188b734b566.zip |
[media] drx39xxj.h: Fix undefined reference to attach function
As reported by the kbuild test robot <fengguang.wu@intel.com>:
drivers/built-in.o: In function `em28xx_dvb_init':
em28xx-dvb.c:(.text+0x876f2c): undefined reference to `drx39xxj_attach'
That happens when CONFIG_VIDEO_EM28XX_DVB is selected, and neither
CONFIG_MEDIA_SUBDRV_AUTOSELECT or DVB_DRX39XYJ is selected.
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
Diffstat (limited to 'drivers/media/dvb-frontends/drx39xyj/drx39xxj.h')
-rw-r--r-- | drivers/media/dvb-frontends/drx39xyj/drx39xxj.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/media/dvb-frontends/drx39xyj/drx39xxj.h b/drivers/media/dvb-frontends/drx39xyj/drx39xxj.h index 2e0c50f0a12a..cfd0b96b6939 100644 --- a/drivers/media/dvb-frontends/drx39xyj/drx39xxj.h +++ b/drivers/media/dvb-frontends/drx39xyj/drx39xxj.h @@ -34,6 +34,12 @@ struct drx39xxj_state { const struct firmware *fw; }; +#if IS_ENABLED(CONFIG_DVB_DRX39XYJ) struct dvb_frontend *drx39xxj_attach(struct i2c_adapter *i2c); +#else +static inline struct dvb_frontend *drx39xxj_attach(struct i2c_adapter *i2c) { + return NULL; +}; +#endif #endif /* DVB_DUMMY_FE_H */ |