diff options
Diffstat (limited to 'drivers/pcmcia/pxa2xx_sharpsl.c')
-rw-r--r-- | drivers/pcmcia/pxa2xx_sharpsl.c | 30 |
1 files changed, 2 insertions, 28 deletions
diff --git a/drivers/pcmcia/pxa2xx_sharpsl.c b/drivers/pcmcia/pxa2xx_sharpsl.c index 69ae2fd22400..b066273b6b4f 100644 --- a/drivers/pcmcia/pxa2xx_sharpsl.c +++ b/drivers/pcmcia/pxa2xx_sharpsl.c | |||
@@ -46,21 +46,9 @@ static void sharpsl_pcmcia_init_reset(struct soc_pcmcia_socket *skt) | |||
46 | 46 | ||
47 | static int sharpsl_pcmcia_hw_init(struct soc_pcmcia_socket *skt) | 47 | static int sharpsl_pcmcia_hw_init(struct soc_pcmcia_socket *skt) |
48 | { | 48 | { |
49 | int ret; | ||
50 | |||
51 | /* Register interrupts */ | ||
52 | if (SCOOP_DEV[skt->nr].cd_irq >= 0) { | 49 | if (SCOOP_DEV[skt->nr].cd_irq >= 0) { |
53 | struct pcmcia_irqs cd_irq; | 50 | skt->stat[SOC_STAT_CD].irq = SCOOP_DEV[skt->nr].cd_irq; |
54 | 51 | skt->stat[SOC_STAT_CD].name = SCOOP_DEV[skt->nr].cd_irq_str; | |
55 | cd_irq.sock = skt->nr; | ||
56 | cd_irq.irq = SCOOP_DEV[skt->nr].cd_irq; | ||
57 | cd_irq.str = SCOOP_DEV[skt->nr].cd_irq_str; | ||
58 | ret = soc_pcmcia_request_irqs(skt, &cd_irq, 1); | ||
59 | |||
60 | if (ret) { | ||
61 | printk(KERN_ERR "Request for Compact Flash IRQ failed\n"); | ||
62 | return ret; | ||
63 | } | ||
64 | } | 52 | } |
65 | 53 | ||
66 | skt->socket.pci_irq = SCOOP_DEV[skt->nr].irq; | 54 | skt->socket.pci_irq = SCOOP_DEV[skt->nr].irq; |
@@ -68,19 +56,6 @@ static int sharpsl_pcmcia_hw_init(struct soc_pcmcia_socket *skt) | |||
68 | return 0; | 56 | return 0; |
69 | } | 57 | } |
70 | 58 | ||
71 | static void sharpsl_pcmcia_hw_shutdown(struct soc_pcmcia_socket *skt) | ||
72 | { | ||
73 | if (SCOOP_DEV[skt->nr].cd_irq >= 0) { | ||
74 | struct pcmcia_irqs cd_irq; | ||
75 | |||
76 | cd_irq.sock = skt->nr; | ||
77 | cd_irq.irq = SCOOP_DEV[skt->nr].cd_irq; | ||
78 | cd_irq.str = SCOOP_DEV[skt->nr].cd_irq_str; | ||
79 | soc_pcmcia_free_irqs(skt, &cd_irq, 1); | ||
80 | } | ||
81 | } | ||
82 | |||
83 | |||
84 | static void sharpsl_pcmcia_socket_state(struct soc_pcmcia_socket *skt, | 59 | static void sharpsl_pcmcia_socket_state(struct soc_pcmcia_socket *skt, |
85 | struct pcmcia_state *state) | 60 | struct pcmcia_state *state) |
86 | { | 61 | { |
@@ -222,7 +197,6 @@ static void sharpsl_pcmcia_socket_suspend(struct soc_pcmcia_socket *skt) | |||
222 | static struct pcmcia_low_level sharpsl_pcmcia_ops __initdata = { | 197 | static struct pcmcia_low_level sharpsl_pcmcia_ops __initdata = { |
223 | .owner = THIS_MODULE, | 198 | .owner = THIS_MODULE, |
224 | .hw_init = sharpsl_pcmcia_hw_init, | 199 | .hw_init = sharpsl_pcmcia_hw_init, |
225 | .hw_shutdown = sharpsl_pcmcia_hw_shutdown, | ||
226 | .socket_state = sharpsl_pcmcia_socket_state, | 200 | .socket_state = sharpsl_pcmcia_socket_state, |
227 | .configure_socket = sharpsl_pcmcia_configure_socket, | 201 | .configure_socket = sharpsl_pcmcia_configure_socket, |
228 | .socket_init = sharpsl_pcmcia_socket_init, | 202 | .socket_init = sharpsl_pcmcia_socket_init, |