johnpol@2ka.mipt.ru: Re: Trivial patch for msbusmouse.c:
> On Tue, Mar 19, 2002 at 03:22:58PM +1100, Rusty Russell wrote:
> > Hi Russell,
> >
> > Please check this request_region() cleanup patch from Evgeniy
> > Polyakov against 2.4 and 2.5.
>
> Both patches look fine, apart from the disgusting formatting being
> different from the rest of the files.
As you wish...
> --
> Russell King (rmk@arm.linux.org.uk) The developer of
> ARM Linux
> http://www.arm.linux.org.uk/personal/aboutme.html
Evgeniy Polyakov ( s0mbre )
}
if (present == 0)
return -EIO;
+ if (!request_region(MS_MSE_CONTROL_PORT, 0x04, "MS Busmouse"))
+ return -EIO;
+
MS_MSE_INT_OFF();
- request_region(MS_MSE_CONTROL_PORT, 0x04, "MS Busmouse");
msedev = register_busmouse(&msbusmouse);
- if (msedev < 0)
+ if (msedev < 0) {
printk(KERN_WARNING "Unable to register msbusmouse driver.\n");
+ release_region(MS_MSE_CONTROL_PORT, 0x04);
+ }
else
printk(KERN_INFO "Microsoft BusMouse detected and installed.\n");
return msedev < 0 ? msedev : 0;