summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/zalon.c
diff options
context:
space:
mode:
authorHelge Deller <deller@gmx.de>2017-08-21 21:56:59 +0200
committerHelge Deller <deller@gmx.de>2017-08-22 16:34:36 +0200
commit5898aa13ab4899d3a12e069f8716f83dd44567eb (patch)
treea962bc6746f720b7eb563a6f456e8a82ec31070c /drivers/scsi/zalon.c
parentparisc/8250_gsc: Fix section mismatches (diff)
downloadlinux-5898aa13ab4899d3a12e069f8716f83dd44567eb.tar.xz
linux-5898aa13ab4899d3a12e069f8716f83dd44567eb.zip
parisc/scsi/zalon: Fix section mismatches
Signed-off-by: Helge Deller <deller@gmx.de>
Diffstat (limited to 'drivers/scsi/zalon.c')
-rw-r--r--drivers/scsi/zalon.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/scsi/zalon.c b/drivers/scsi/zalon.c
index b2cf1faa819d..4722660958f8 100644
--- a/drivers/scsi/zalon.c
+++ b/drivers/scsi/zalon.c
@@ -160,14 +160,14 @@ zalon_probe(struct parisc_device *dev)
return error;
}
-static struct parisc_device_id zalon_tbl[] = {
+static const struct parisc_device_id zalon_tbl[] __initconst = {
{ HPHW_A_DMA, HVERSION_REV_ANY_ID, HVERSION_ANY_ID, 0x00089 },
{ 0, }
};
MODULE_DEVICE_TABLE(parisc, zalon_tbl);
-static int zalon_remove(struct parisc_device *dev)
+static int __exit zalon_remove(struct parisc_device *dev)
{
struct Scsi_Host *host = dev_get_drvdata(&dev->dev);
@@ -178,11 +178,11 @@ static int zalon_remove(struct parisc_device *dev)
return 0;
}
-static struct parisc_driver zalon_driver = {
+static struct parisc_driver zalon_driver __refdata = {
.name = "zalon",
.id_table = zalon_tbl,
.probe = zalon_probe,
- .remove = zalon_remove,
+ .remove = __exit_p(zalon_remove),
};
static int __init zalon7xx_init(void)