Commit 76246808 authored by Adrian Bunk's avatar Adrian Bunk Committed by James Bottomley

[SCSI] esp_scsi: remove __dev{init,exit}

Since scsi_esp_{,un}register() are EXPORT_SYMBOL'ed, these functions
(and the functions they use) can't be __dev{init,exit}.

Based on a bug report by Rob Landley.
Signed-off-by: default avatarAdrian Bunk <bunk@kernel.org>
Acked-by: default avatarDavid S. Miller <davem@davemloft.net>
Signed-off-by: default avatarJames Bottomley <James.Bottomley@SteelEye.com>
parent 3892d88a
...@@ -2138,7 +2138,7 @@ irqreturn_t scsi_esp_intr(int irq, void *dev_id) ...@@ -2138,7 +2138,7 @@ irqreturn_t scsi_esp_intr(int irq, void *dev_id)
} }
EXPORT_SYMBOL(scsi_esp_intr); EXPORT_SYMBOL(scsi_esp_intr);
static void __devinit esp_get_revision(struct esp *esp) static void esp_get_revision(struct esp *esp)
{ {
u8 val; u8 val;
...@@ -2187,7 +2187,7 @@ static void __devinit esp_get_revision(struct esp *esp) ...@@ -2187,7 +2187,7 @@ static void __devinit esp_get_revision(struct esp *esp)
} }
} }
static void __devinit esp_init_swstate(struct esp *esp) static void esp_init_swstate(struct esp *esp)
{ {
int i; int i;
...@@ -2233,7 +2233,7 @@ static void esp_bootup_reset(struct esp *esp) ...@@ -2233,7 +2233,7 @@ static void esp_bootup_reset(struct esp *esp)
esp_read8(ESP_INTRPT); esp_read8(ESP_INTRPT);
} }
static void __devinit esp_set_clock_params(struct esp *esp) static void esp_set_clock_params(struct esp *esp)
{ {
int fmhz; int fmhz;
u8 ccf; u8 ccf;
...@@ -2306,7 +2306,7 @@ static const char *esp_chip_names[] = { ...@@ -2306,7 +2306,7 @@ static const char *esp_chip_names[] = {
static struct scsi_transport_template *esp_transport_template; static struct scsi_transport_template *esp_transport_template;
int __devinit scsi_esp_register(struct esp *esp, struct device *dev) int scsi_esp_register(struct esp *esp, struct device *dev)
{ {
static int instance; static int instance;
int err; int err;
...@@ -2345,7 +2345,7 @@ int __devinit scsi_esp_register(struct esp *esp, struct device *dev) ...@@ -2345,7 +2345,7 @@ int __devinit scsi_esp_register(struct esp *esp, struct device *dev)
} }
EXPORT_SYMBOL(scsi_esp_register); EXPORT_SYMBOL(scsi_esp_register);
void __devexit scsi_esp_unregister(struct esp *esp) void scsi_esp_unregister(struct esp *esp)
{ {
scsi_remove_host(esp->host); scsi_remove_host(esp->host);
} }
......
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