diff options
| author | Takashi Iwai <tiwai@suse.de> | 2011-08-08 14:30:29 +0200 | 
|---|---|---|
| committer | Takashi Iwai <tiwai@suse.de> | 2011-08-08 14:30:29 +0200 | 
| commit | 0a2d31b62dba9b5b92a38c67c9cc42630513662a (patch) | |
| tree | f755d74ec85248de645e10c45ed1a2ed467530f6 /drivers/media/dvb/dvb-core/dvb_net.h | |
| parent | 8039290a91c5dc4414093c086987a5d7738fe2fd (diff) | |
| parent | df944f66784e6d4f2f50739263a4947885d8b6ae (diff) | |
Merge branch 'fix/kconfig' into for-linus
Diffstat (limited to 'drivers/media/dvb/dvb-core/dvb_net.h')
| -rw-r--r-- | drivers/media/dvb/dvb-core/dvb_net.h | 21 | 
1 files changed, 20 insertions, 1 deletions
| diff --git a/drivers/media/dvb/dvb-core/dvb_net.h b/drivers/media/dvb/dvb-core/dvb_net.h index 3a3126cae03b..1e53acd50cf4 100644 --- a/drivers/media/dvb/dvb-core/dvb_net.h +++ b/drivers/media/dvb/dvb-core/dvb_net.h @@ -32,6 +32,8 @@  #define DVB_NET_DEVICES_MAX 10 +#ifdef CONFIG_DVB_NET +  struct dvb_net {  	struct dvb_device *dvbdev;  	struct net_device *device[DVB_NET_DEVICES_MAX]; @@ -40,8 +42,25 @@ struct dvb_net {  	struct dmx_demux *demux;  }; -  void dvb_net_release(struct dvb_net *);  int  dvb_net_init(struct dvb_adapter *, struct dvb_net *, struct dmx_demux *); +#else + +struct dvb_net { +	struct dvb_device *dvbdev; +}; + +static inline void dvb_net_release(struct dvb_net *dvbnet) +{ +} + +static inline int dvb_net_init(struct dvb_adapter *adap, +			       struct dvb_net *dvbnet, struct dmx_demux *dmx) +{ +	return 0; +} + +#endif /* ifdef CONFIG_DVB_NET */ +  #endif | 
