Skip to content

Commit

Permalink
[media] drx39xxj.h: Fix undefined reference to attach function
Browse files Browse the repository at this point in the history
As reported by the kbuild test robot <[email protected]>:

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 <[email protected]>
  • Loading branch information
mchehab committed Mar 11, 2014
1 parent 87bf0e5 commit d1f2aae
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions drivers/media/dvb-frontends/drx39xyj/drx39xxj.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */

0 comments on commit d1f2aae

Please sign in to comment.