aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pcmcia/rsrc_nonstatic.c
diff options
context:
space:
mode:
authorDominik Brodowski <linux@dominikbrodowski.net>2010-07-21 08:43:05 -0400
committerDominik Brodowski <linux@dominikbrodowski.net>2010-07-30 15:07:37 -0400
commitce3f9d71bd9c4268698109ad425625a2a8f51e22 (patch)
tree31f1c514199da5aabae02ac4aeab31f6343fe324 /drivers/pcmcia/rsrc_nonstatic.c
parent134716f19bc53dc22e8aba34f2af195b805328b5 (diff)
pcmcia: remove unused flag, simplify headers
As we only provide one way to set up resources now, we can remove the resource-setup-related bitfield (except resource_setup_done). In addition, pcmcia_state only consisted of one entry, so remove this bitfield as well. Suggested-by: Komuro <komurojun-mbn@nifty.com> Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
Diffstat (limited to 'drivers/pcmcia/rsrc_nonstatic.c')
-rw-r--r--drivers/pcmcia/rsrc_nonstatic.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/pcmcia/rsrc_nonstatic.c b/drivers/pcmcia/rsrc_nonstatic.c
index d217dc1d426b..13245a2986f3 100644
--- a/drivers/pcmcia/rsrc_nonstatic.c
+++ b/drivers/pcmcia/rsrc_nonstatic.c
@@ -1113,8 +1113,6 @@ static ssize_t store_io_db(struct device *dev,
1113 1113
1114 mutex_lock(&s->ops_mutex); 1114 mutex_lock(&s->ops_mutex);
1115 ret = adjust_io(s, add, start_addr, end_addr); 1115 ret = adjust_io(s, add, start_addr, end_addr);
1116 if (!ret)
1117 s->resource_setup_new = 1;
1118 mutex_unlock(&s->ops_mutex); 1116 mutex_unlock(&s->ops_mutex);
1119 1117
1120 return ret ? ret : count; 1118 return ret ? ret : count;
@@ -1181,8 +1179,6 @@ static ssize_t store_mem_db(struct device *dev,
1181 1179
1182 mutex_lock(&s->ops_mutex); 1180 mutex_lock(&s->ops_mutex);
1183 ret = adjust_memory(s, add, start_addr, end_addr); 1181 ret = adjust_memory(s, add, start_addr, end_addr);
1184 if (!ret)
1185 s->resource_setup_new = 1;
1186 mutex_unlock(&s->ops_mutex); 1182 mutex_unlock(&s->ops_mutex);
1187 1183
1188 return ret ? ret : count; 1184 return ret ? ret : count;