On Tue, Aug 29, 2006 at 01:55:37AM -0700, Komal Shah wrote:
> --- "Zephaniah E. Hull" <warp@xxxxxxxxxxx> wrote:
> >
> > -psmouse-objs := psmouse-base.o alps.o logips2pp.o synaptics.o
> > lifebook.o trackpoint.o
> > +psmouse-objs := psmouse-base.o alps.o logips2pp.o synaptics.o
> > lifebook.o trackpoint.o olpc.o
>
> Where is KConfigurable entry ?
It is a component of psmouse.o, which is a few lines up.
Breaking out the components of psmouse.o into separate configuration
items might be interesting, but it is quite a bit beyond the scope of
this patch.
>
> > diff --git a/drivers/input/mouse/olpc.c b/drivers/input/mouse/olpc.c
> > new file mode 100644
> > index 0000000..245f29e
> > --- /dev/null
> > +++ b/drivers/input/mouse/olpc.c
> > @@ -0,0 +1,327 @@
>
>
> > +/*
> > + * OLPC touchpad PS/2 mouse driver
> > + *
> > +int olpc_init(struct psmouse *psmouse)
> > +{
> > + struct olpc_data *priv;
> > + struct input_dev *dev = psmouse->dev;
> > + struct input_dev *dev2;
> > +
> > + psmouse->private = priv = kzalloc(sizeof(struct olpc_data),
> > GFP_KERNEL);
>
> I think you should assign priv to private only if !NULL.
Fixed.
It should not actually matter, as a failure to get a !NULL value causes
us to return false, which will fall over to other psmouse drivers which
will either set it themselves, or not use it at all, however.
It should be noted that alps.c contains the same issue.