PNP driver changes for 2.5.50

PNP driver changes for 2.5.50

Post by Greg K » Sat, 07 Dec 2002 19:00:11




[PATCH] PnP bugfix

I forgot the errno.h.  Without this patch, things may not compile when
pnp support or pnp card support is disabled.

Hope you had a good trip.  I noticed a small mistake in pnp 0.93 and I have
a fix for it.

diff -Nru a/include/linux/pnp.h b/include/linux/pnp.h
--- a/include/linux/pnp.h       Fri Dec  6 10:38:37 2002

 #include <linux/device.h>
 #include <linux/list.h>
+#include <linux/errno.h>

 /*
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

 
 
 

PNP driver changes for 2.5.50

Post by Greg K » Sat, 07 Dec 2002 19:00:16



[PATCH] PnP gameport driver update

This trivial patch updates the gameport driver to the new id scheme.

diff -Nru a/drivers/input/gameport/ns558.c b/drivers/input/gameport/ns558.c
--- a/drivers/input/gameport/ns558.c    Fri Dec  6 10:38:34 2002

 #ifdef CONFIG_PNP

-static struct pnp_id pnp_devids[] = {
+static struct pnp_device_id pnp_devids[] = {



 MODULE_DEVICE_TABLE(pnp, pnp_devids);

-static int ns558_pnp_probe(struct pnp_dev *dev, const struct pnp_id *cid, const struct pnp_id *did)
+static int ns558_pnp_probe(struct pnp_dev *dev, const struct pnp_device_id *did)
 {
        int ioport, iolen;
        struct ns558 *port;
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/