diff options
Diffstat (limited to 'drivers/scsi/sun_esp.c')
-rw-r--r-- | drivers/scsi/sun_esp.c | 30 |
1 files changed, 14 insertions, 16 deletions
diff --git a/drivers/scsi/sun_esp.c b/drivers/scsi/sun_esp.c index 676fe9ac7f61..f2e68459f7ea 100644 --- a/drivers/scsi/sun_esp.c +++ b/drivers/scsi/sun_esp.c | |||
@@ -43,8 +43,7 @@ enum dvma_rev { | |||
43 | dvmahme | 43 | dvmahme |
44 | }; | 44 | }; |
45 | 45 | ||
46 | static int __devinit esp_sbus_setup_dma(struct esp *esp, | 46 | static int esp_sbus_setup_dma(struct esp *esp, struct platform_device *dma_of) |
47 | struct platform_device *dma_of) | ||
48 | { | 47 | { |
49 | esp->dma = dma_of; | 48 | esp->dma = dma_of; |
50 | 49 | ||
@@ -79,7 +78,7 @@ static int __devinit esp_sbus_setup_dma(struct esp *esp, | |||
79 | 78 | ||
80 | } | 79 | } |
81 | 80 | ||
82 | static int __devinit esp_sbus_map_regs(struct esp *esp, int hme) | 81 | static int esp_sbus_map_regs(struct esp *esp, int hme) |
83 | { | 82 | { |
84 | struct platform_device *op = esp->dev; | 83 | struct platform_device *op = esp->dev; |
85 | struct resource *res; | 84 | struct resource *res; |
@@ -99,7 +98,7 @@ static int __devinit esp_sbus_map_regs(struct esp *esp, int hme) | |||
99 | return 0; | 98 | return 0; |
100 | } | 99 | } |
101 | 100 | ||
102 | static int __devinit esp_sbus_map_command_block(struct esp *esp) | 101 | static int esp_sbus_map_command_block(struct esp *esp) |
103 | { | 102 | { |
104 | struct platform_device *op = esp->dev; | 103 | struct platform_device *op = esp->dev; |
105 | 104 | ||
@@ -111,7 +110,7 @@ static int __devinit esp_sbus_map_command_block(struct esp *esp) | |||
111 | return 0; | 110 | return 0; |
112 | } | 111 | } |
113 | 112 | ||
114 | static int __devinit esp_sbus_register_irq(struct esp *esp) | 113 | static int esp_sbus_register_irq(struct esp *esp) |
115 | { | 114 | { |
116 | struct Scsi_Host *host = esp->host; | 115 | struct Scsi_Host *host = esp->host; |
117 | struct platform_device *op = esp->dev; | 116 | struct platform_device *op = esp->dev; |
@@ -120,7 +119,7 @@ static int __devinit esp_sbus_register_irq(struct esp *esp) | |||
120 | return request_irq(host->irq, scsi_esp_intr, IRQF_SHARED, "ESP", esp); | 119 | return request_irq(host->irq, scsi_esp_intr, IRQF_SHARED, "ESP", esp); |
121 | } | 120 | } |
122 | 121 | ||
123 | static void __devinit esp_get_scsi_id(struct esp *esp, struct platform_device *espdma) | 122 | static void esp_get_scsi_id(struct esp *esp, struct platform_device *espdma) |
124 | { | 123 | { |
125 | struct platform_device *op = esp->dev; | 124 | struct platform_device *op = esp->dev; |
126 | struct device_node *dp; | 125 | struct device_node *dp; |
@@ -142,7 +141,7 @@ done: | |||
142 | esp->scsi_id_mask = (1 << esp->scsi_id); | 141 | esp->scsi_id_mask = (1 << esp->scsi_id); |
143 | } | 142 | } |
144 | 143 | ||
145 | static void __devinit esp_get_differential(struct esp *esp) | 144 | static void esp_get_differential(struct esp *esp) |
146 | { | 145 | { |
147 | struct platform_device *op = esp->dev; | 146 | struct platform_device *op = esp->dev; |
148 | struct device_node *dp; | 147 | struct device_node *dp; |
@@ -154,7 +153,7 @@ static void __devinit esp_get_differential(struct esp *esp) | |||
154 | esp->flags &= ~ESP_FLAG_DIFFERENTIAL; | 153 | esp->flags &= ~ESP_FLAG_DIFFERENTIAL; |
155 | } | 154 | } |
156 | 155 | ||
157 | static void __devinit esp_get_clock_params(struct esp *esp) | 156 | static void esp_get_clock_params(struct esp *esp) |
158 | { | 157 | { |
159 | struct platform_device *op = esp->dev; | 158 | struct platform_device *op = esp->dev; |
160 | struct device_node *bus_dp, *dp; | 159 | struct device_node *bus_dp, *dp; |
@@ -170,7 +169,7 @@ static void __devinit esp_get_clock_params(struct esp *esp) | |||
170 | esp->cfreq = fmhz; | 169 | esp->cfreq = fmhz; |
171 | } | 170 | } |
172 | 171 | ||
173 | static void __devinit esp_get_bursts(struct esp *esp, struct platform_device *dma_of) | 172 | static void esp_get_bursts(struct esp *esp, struct platform_device *dma_of) |
174 | { | 173 | { |
175 | struct device_node *dma_dp = dma_of->dev.of_node; | 174 | struct device_node *dma_dp = dma_of->dev.of_node; |
176 | struct platform_device *op = esp->dev; | 175 | struct platform_device *op = esp->dev; |
@@ -195,7 +194,7 @@ static void __devinit esp_get_bursts(struct esp *esp, struct platform_device *dm | |||
195 | esp->bursts = bursts; | 194 | esp->bursts = bursts; |
196 | } | 195 | } |
197 | 196 | ||
198 | static void __devinit esp_sbus_get_props(struct esp *esp, struct platform_device *espdma) | 197 | static void esp_sbus_get_props(struct esp *esp, struct platform_device *espdma) |
199 | { | 198 | { |
200 | esp_get_scsi_id(esp, espdma); | 199 | esp_get_scsi_id(esp, espdma); |
201 | esp_get_differential(esp); | 200 | esp_get_differential(esp); |
@@ -487,9 +486,8 @@ static const struct esp_driver_ops sbus_esp_ops = { | |||
487 | .dma_error = sbus_esp_dma_error, | 486 | .dma_error = sbus_esp_dma_error, |
488 | }; | 487 | }; |
489 | 488 | ||
490 | static int __devinit esp_sbus_probe_one(struct platform_device *op, | 489 | static int esp_sbus_probe_one(struct platform_device *op, |
491 | struct platform_device *espdma, | 490 | struct platform_device *espdma, int hme) |
492 | int hme) | ||
493 | { | 491 | { |
494 | struct scsi_host_template *tpnt = &scsi_esp_template; | 492 | struct scsi_host_template *tpnt = &scsi_esp_template; |
495 | struct Scsi_Host *host; | 493 | struct Scsi_Host *host; |
@@ -562,7 +560,7 @@ fail: | |||
562 | return err; | 560 | return err; |
563 | } | 561 | } |
564 | 562 | ||
565 | static int __devinit esp_sbus_probe(struct platform_device *op) | 563 | static int esp_sbus_probe(struct platform_device *op) |
566 | { | 564 | { |
567 | struct device_node *dma_node = NULL; | 565 | struct device_node *dma_node = NULL; |
568 | struct device_node *dp = op->dev.of_node; | 566 | struct device_node *dp = op->dev.of_node; |
@@ -585,7 +583,7 @@ static int __devinit esp_sbus_probe(struct platform_device *op) | |||
585 | return esp_sbus_probe_one(op, dma_of, hme); | 583 | return esp_sbus_probe_one(op, dma_of, hme); |
586 | } | 584 | } |
587 | 585 | ||
588 | static int __devexit esp_sbus_remove(struct platform_device *op) | 586 | static int esp_sbus_remove(struct platform_device *op) |
589 | { | 587 | { |
590 | struct esp *esp = dev_get_drvdata(&op->dev); | 588 | struct esp *esp = dev_get_drvdata(&op->dev); |
591 | struct platform_device *dma_of = esp->dma; | 589 | struct platform_device *dma_of = esp->dma; |
@@ -639,7 +637,7 @@ static struct platform_driver esp_sbus_driver = { | |||
639 | .of_match_table = esp_match, | 637 | .of_match_table = esp_match, |
640 | }, | 638 | }, |
641 | .probe = esp_sbus_probe, | 639 | .probe = esp_sbus_probe, |
642 | .remove = __devexit_p(esp_sbus_remove), | 640 | .remove = esp_sbus_remove, |
643 | }; | 641 | }; |
644 | 642 | ||
645 | static int __init sunesp_init(void) | 643 | static int __init sunesp_init(void) |