ISAPNP: remove unused pnp_dev->regs field
authorBjorn Helgaas <bjorn.helgaas@hp.com>
Mon, 28 Apr 2008 22:34:41 +0000 (16:34 -0600)
committerLen Brown <len.brown@intel.com>
Tue, 29 Apr 2008 07:22:30 +0000 (03:22 -0400)
The "regs" field in struct pnp_dev is set but never read, so remove it.

Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com>
Acked-By: Rene Herman <rene.herman@gmail.com>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/pnp/isapnp/core.c
include/linux/pnp.h

index a3f1566ccea5e2236348920ce17a6a5ea46fada2..f1bccdbdeb0841f282bd1c0ea70d1ee06278c303 100644 (file)
@@ -416,10 +416,7 @@ static struct pnp_dev *__init isapnp_parse_device(struct pnp_card *card,
        if (!dev)
                return NULL;
 
-       dev->regs = tmp[4];
        dev->card = card;
-       if (size > 5)
-               dev->regs |= tmp[5] << 8;
        dev->capabilities |= PNP_CONFIGURABLE;
        dev->capabilities |= PNP_READ;
        dev->capabilities |= PNP_WRITE;
index f5b985e912aedd2777bb5ba1d74100f98e6e7b42..e3b2c0068de752f7ac00d73d82c9c53e8da193ef 100644 (file)
@@ -253,7 +253,6 @@ struct pnp_dev {
        struct pnp_resource_table *res;
 
        char name[PNP_NAME_LEN];        /* contains a human-readable name */
-       unsigned short regs;            /* ISAPnP: supported registers */
        int flags;                      /* used by protocols */
        struct proc_dir_entry *procent; /* device entry in /proc/bus/isapnp */
        void *data;