Re: [PATCH] cx88: Prevent general protection fault on rmmod

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 5 Mar 2009 01:43:55 -0800 (PST), Trent Piepho wrote:
> On Thu, 5 Mar 2009, Jean Delvare wrote:
> > +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,20)
> >  	struct work_struct work;
> >  	struct timer_list timer;
> > +#else
> > +	struct delayed_work work;
> > +#endif
> 
> You don't need this compat stuff.  compat.h will take are of it for you.
> Just code it like you would for the latest kernel.  The only thing you need
> to worry about is the way the third argument of the work function went
> away, but the ifdef that's already there takes care of it.

OK, thanks. I'll resend updated patches soon.

-- 
Jean Delvare
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux