aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/acpi/bay.c
diff options
context:
space:
mode:
authorAdrian Bunk <bunk@kernel.org>2007-10-24 12:24:42 -0400
committerLen Brown <len.brown@intel.com>2008-02-07 03:33:23 -0500
commite5685b9d35c2cc0a98425b05df30cb837dd1e632 (patch)
tree7f10940d8bdaa18cd806d42a3fdb63cfefc47f37 /drivers/acpi/bay.c
parent87ecd5cddaa37f057d8d8c2813e1b748b1804423 (diff)
ACPI: misc cleanups
This patch contains the following possible cleanups: - make the following needlessly global code static: - drivers/acpi/bay.c:dev_attr_eject - drivers/acpi/bay.c:dev_attr_present - drivers/acpi/dock.c:dev_attr_docked - drivers/acpi/dock.c:dev_attr_flags - drivers/acpi/dock.c:dev_attr_uid - drivers/acpi/dock.c:dev_attr_undock - drivers/acpi/pci_bind.c:acpi_pci_unbind() - drivers/acpi/pci_link.c:acpi_link_lock - drivers/acpi/sbs.c:acpi_sbs_callback() - drivers/acpi/sbshc.c:acpi_smbus_transaction() - drivers/acpi/sleep/main.c:acpi_sleep_prepare() - #if 0 the following unused global functions: - drivers/acpi/numa.c:acpi_unmap_pxm_to_node() - remove the following unused EXPORT_SYMBOL's: - acpi_register_gsi - acpi_unregister_gsi - acpi_strict - acpi_bus_receive_event - register_acpi_bus_type - unregister_acpi_bus_type - acpi_os_printf - acpi_os_sleep - acpi_os_stall - acpi_os_read_pci_configuration - acpi_os_create_semaphore - acpi_os_delete_semaphore - acpi_os_wait_semaphore - acpi_os_signal_semaphore - acpi_os_signal - acpi_pci_irq_enable - acpi_get_pxm Signed-off-by: Adrian Bunk <bunk@kernel.org> Acked-by: Alexey Starikovskiy <astarikovskiy@suse.de> Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers/acpi/bay.c')
-rw-r--r--drivers/acpi/bay.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/acpi/bay.c b/drivers/acpi/bay.c
index 6daf6088ac88..0c81294ac489 100644
--- a/drivers/acpi/bay.c
+++ b/drivers/acpi/bay.c
@@ -128,7 +128,7 @@ static ssize_t show_present(struct device *dev,
128 return snprintf(buf, PAGE_SIZE, "%d\n", bay_present(bay)); 128 return snprintf(buf, PAGE_SIZE, "%d\n", bay_present(bay));
129 129
130} 130}
131DEVICE_ATTR(present, S_IRUGO, show_present, NULL); 131static DEVICE_ATTR(present, S_IRUGO, show_present, NULL);
132 132
133/* 133/*
134 * write_eject - write method for "eject" file in sysfs 134 * write_eject - write method for "eject" file in sysfs
@@ -144,7 +144,7 @@ static ssize_t write_eject(struct device *dev, struct device_attribute *attr,
144 eject_device(bay->handle); 144 eject_device(bay->handle);
145 return count; 145 return count;
146} 146}
147DEVICE_ATTR(eject, S_IWUSR, NULL, write_eject); 147static DEVICE_ATTR(eject, S_IWUSR, NULL, write_eject);
148 148
149/** 149/**
150 * is_ata - see if a device is an ata device 150 * is_ata - see if a device is an ata device