Skip to content

Commit

Permalink
[SCSI] esp_scsi: remove __dev{init,exit}
Browse files Browse the repository at this point in the history
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: Adrian Bunk <bunk@kernel.org>
Acked-by: David S. Miller <davem@davemloft.net>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
  • Loading branch information
Adrian Bunk authored and James Bottomley committed Oct 12, 2007
1 parent 3892d88 commit 7624680
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions drivers/scsi/esp_scsi.c
Original file line number Diff line number Diff line change
Expand Up @@ -2138,7 +2138,7 @@ irqreturn_t scsi_esp_intr(int irq, void *dev_id)
}
EXPORT_SYMBOL(scsi_esp_intr);

static void __devinit esp_get_revision(struct esp *esp)
static void esp_get_revision(struct esp *esp)
{
u8 val;

Expand Down Expand Up @@ -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;

Expand Down Expand Up @@ -2233,7 +2233,7 @@ static void esp_bootup_reset(struct esp *esp)
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;
u8 ccf;
Expand Down Expand Up @@ -2306,7 +2306,7 @@ static const char *esp_chip_names[] = {

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;
int err;
Expand Down Expand Up @@ -2345,7 +2345,7 @@ int __devinit scsi_esp_register(struct esp *esp, struct device *dev)
}
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);
}
Expand Down

0 comments on commit 7624680

Please sign in to comment.