lkml.org 
[lkml]   [2008]   [Apr]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[patch 50/53] ISAPNP: remove unused pnp_dev->regs field
The "regs" field in struct pnp_dev is set but never read, so remove it.

Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com>

Index: work8/drivers/pnp/isapnp/core.c
===================================================================
--- work8.orig/drivers/pnp/isapnp/core.c 2008-04-18 11:15:16.000000000 -0600
+++ work8/drivers/pnp/isapnp/core.c 2008-04-18 11:19:49.000000000 -0600
@@ -416,10 +416,7 @@
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: work8/include/linux/pnp.h
===================================================================
--- work8.orig/include/linux/pnp.h 2008-04-18 11:19:43.000000000 -0600
+++ work8/include/linux/pnp.h 2008-04-18 11:19:49.000000000 -0600
@@ -255,7 +255,6 @@
struct list_head resources;

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;
--


\
 
 \ /
  Last update: 2008-04-18 23:15    [W:0.205 / U:1.292 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site