Commit 8bbb2de8 authored by Russell King's avatar Russell King

[PCMCIA] Convert cs.c and rsrc_mgr.c to use named initialisers.

parent 817f0820
...@@ -120,7 +120,7 @@ static const char *version = ...@@ -120,7 +120,7 @@ static const char *version =
/*====================================================================*/ /*====================================================================*/
socket_state_t dead_socket = { socket_state_t dead_socket = {
0, SS_DETECT, 0, 0, 0 .csc_mask = SS_DETECT,
}; };
......
...@@ -77,10 +77,14 @@ typedef struct resource_map_t { ...@@ -77,10 +77,14 @@ typedef struct resource_map_t {
} resource_map_t; } resource_map_t;
/* Memory resource database */ /* Memory resource database */
static resource_map_t mem_db = { 0, 0, &mem_db }; static resource_map_t mem_db = {
.next = &mem_db,
};
/* IO port resource database */ /* IO port resource database */
static resource_map_t io_db = { 0, 0, &io_db }; static resource_map_t io_db = {
.next = &io_db,
};
static DECLARE_MUTEX(rsrc_sem); static DECLARE_MUTEX(rsrc_sem);
...@@ -93,7 +97,7 @@ typedef struct irq_info_t { ...@@ -93,7 +97,7 @@ typedef struct irq_info_t {
} irq_info_t; } irq_info_t;
/* Table of IRQ assignments */ /* Table of IRQ assignments */
static irq_info_t irq_table[NR_IRQS] = { { 0, 0, 0 }, /* etc */ }; static irq_info_t irq_table[NR_IRQS];
#endif #endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment