X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=drivers%2Facpi%2Fbay.c;h=1fa86811b8ee6ee8e5e675666fc1092f0b4c6eb5;hb=f920bb6f5fe21047e669381fe4dd346f6a9d3562;hp=477711435b24e10784a6142acac33cf79a5ee50d;hpb=26b6f2236615649a0ae6a0de2e9e71a2f9ffeba7;p=linux-2.6 diff --git a/drivers/acpi/bay.c b/drivers/acpi/bay.c index 477711435b..1fa86811b8 100644 --- a/drivers/acpi/bay.c +++ b/drivers/acpi/bay.c @@ -134,7 +134,7 @@ static ssize_t show_present(struct device *dev, return snprintf(buf, PAGE_SIZE, "%d\n", bay_present(bay)); } -DEVICE_ATTR(present, S_IRUGO, show_present, NULL); +static DEVICE_ATTR(present, S_IRUGO, show_present, NULL); /* * write_eject - write method for "eject" file in sysfs @@ -150,7 +150,7 @@ static ssize_t write_eject(struct device *dev, struct device_attribute *attr, eject_device(bay->handle); return count; } -DEVICE_ATTR(eject, S_IWUSR, NULL, write_eject); +static DEVICE_ATTR(eject, S_IWUSR, NULL, write_eject); /** * is_ata - see if a device is an ata device