diff options
-rw-r--r-- | drivers/media/usb/dvb-usb-v2/rtl28xxu.c | 20 |
1 files changed, 1 insertions, 19 deletions
diff --git a/drivers/media/usb/dvb-usb-v2/rtl28xxu.c b/drivers/media/usb/dvb-usb-v2/rtl28xxu.c index a527330d1ee1..a30ed17852c0 100644 --- a/drivers/media/usb/dvb-usb-v2/rtl28xxu.c +++ b/drivers/media/usb/dvb-usb-v2/rtl28xxu.c | |||
@@ -24,6 +24,7 @@ | |||
24 | 24 | ||
25 | #include "rtl2830.h" | 25 | #include "rtl2830.h" |
26 | #include "rtl2832.h" | 26 | #include "rtl2832.h" |
27 | #include "rtl2832_sdr.h" | ||
27 | #include "mn88472.h" | 28 | #include "mn88472.h" |
28 | #include "mn88473.h" | 29 | #include "mn88473.h" |
29 | 30 | ||
@@ -37,25 +38,6 @@ | |||
37 | #include "tua9001.h" | 38 | #include "tua9001.h" |
38 | #include "r820t.h" | 39 | #include "r820t.h" |
39 | 40 | ||
40 | /* | ||
41 | * RTL2832_SDR module is in staging. That logic is added in order to avoid any | ||
42 | * hard dependency to drivers/staging/ directory as we want compile mainline | ||
43 | * driver even whole staging directory is missing. | ||
44 | */ | ||
45 | #include <media/v4l2-subdev.h> | ||
46 | |||
47 | #if IS_ENABLED(CONFIG_DVB_RTL2832_SDR) | ||
48 | struct dvb_frontend *rtl2832_sdr_attach(struct dvb_frontend *fe, | ||
49 | struct i2c_adapter *i2c, const struct rtl2832_config *cfg, | ||
50 | struct v4l2_subdev *sd); | ||
51 | #else | ||
52 | static inline struct dvb_frontend *rtl2832_sdr_attach(struct dvb_frontend *fe, | ||
53 | struct i2c_adapter *i2c, const struct rtl2832_config *cfg, | ||
54 | struct v4l2_subdev *sd) | ||
55 | { | ||
56 | return NULL; | ||
57 | } | ||
58 | #endif | ||
59 | 41 | ||
60 | #ifdef CONFIG_MEDIA_ATTACH | 42 | #ifdef CONFIG_MEDIA_ATTACH |
61 | #define dvb_attach_sdr(FUNCTION, ARGS...) ({ \ | 43 | #define dvb_attach_sdr(FUNCTION, ARGS...) ({ \ |