svn commit: r287312 - head/sys/dev/iwn

Konstantin Belousov kostikbel at gmail.com
Mon Aug 31 08:43:38 UTC 2015


On Sun, Aug 30, 2015 at 09:54:33PM +0000, Adrian Chadd wrote:
>  static int
> -iwn_ioctl(struct ieee80211com *ic, u_long cmd, void *data)
> +iwn_cdev_open(struct cdev *dev, int flags, int type, struct thread *td)
>  {
> -	struct ifreq *ifr = data;
> -	struct iwn_softc *sc = ic->ic_softc;
> -	int error = 0;
> - 
> +
> +	return (0);
> +}
> +
> +static int
> +iwn_cdev_close(struct cdev *dev, int flags, int type, struct thread *td)
> +{
> +
> +	return (0);
> +}

devfs does the right thing for drivers which does not provide d_open and
d_close methods, these empty stubs are not needed.


More information about the svn-src-head mailing list