aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/acpi/bay.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/acpi/bay.c')
-rw-r--r--drivers/acpi/bay.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/drivers/acpi/bay.c b/drivers/acpi/bay.c
index 6daf6088ac88..1fa86811b8ee 100644
--- a/drivers/acpi/bay.c
+++ b/drivers/acpi/bay.c
@@ -46,6 +46,12 @@ MODULE_LICENSE("GPL");
46 printk(KERN_DEBUG PREFIX "%s: %s\n", prefix, s); } 46 printk(KERN_DEBUG PREFIX "%s: %s\n", prefix, s); }
47static void bay_notify(acpi_handle handle, u32 event, void *data); 47static void bay_notify(acpi_handle handle, u32 event, void *data);
48 48
49static const struct acpi_device_id bay_device_ids[] = {
50 {"LNXIOBAY", 0},
51 {"", 0},
52};
53MODULE_DEVICE_TABLE(acpi, bay_device_ids);
54
49struct bay { 55struct bay {
50 acpi_handle handle; 56 acpi_handle handle;
51 char *name; 57 char *name;
@@ -128,7 +134,7 @@ static ssize_t show_present(struct device *dev,
128 return snprintf(buf, PAGE_SIZE, "%d\n", bay_present(bay)); 134 return snprintf(buf, PAGE_SIZE, "%d\n", bay_present(bay));
129 135
130} 136}
131DEVICE_ATTR(present, S_IRUGO, show_present, NULL); 137static DEVICE_ATTR(present, S_IRUGO, show_present, NULL);
132 138
133/* 139/*
134 * write_eject - write method for "eject" file in sysfs 140 * write_eject - write method for "eject" file in sysfs
@@ -144,7 +150,7 @@ static ssize_t write_eject(struct device *dev, struct device_attribute *attr,
144 eject_device(bay->handle); 150 eject_device(bay->handle);
145 return count; 151 return count;
146} 152}
147DEVICE_ATTR(eject, S_IWUSR, NULL, write_eject); 153static DEVICE_ATTR(eject, S_IWUSR, NULL, write_eject);
148 154
149/** 155/**
150 * is_ata - see if a device is an ata device 156 * is_ata - see if a device is an ata device