diff options
author | Henrique de Moraes Holschuh <hmh@hmh.eng.br> | 2007-04-21 10:08:27 -0400 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2007-04-21 23:30:33 -0400 |
commit | 1def7115f0277ce9d2a54efd0ae187aa88d5c7fa (patch) | |
tree | d32c315dc38a040fc8f4b2bc27fe0c16c39c78c7 /drivers/misc/thinkpad_acpi.c | |
parent | 142cfc90f026b0b8fd1a14ba11ae29eb7b1b6ca1 (diff) |
ACPI: thinkpad-acpi: rename module glue
Rename module init and exit functions, now that we are not called ibm-acpi
anymore.
Signed-off-by: Henrique de Moraes Holschuh <hmh@hmh.eng.br>
Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers/misc/thinkpad_acpi.c')
-rw-r--r-- | drivers/misc/thinkpad_acpi.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/misc/thinkpad_acpi.c b/drivers/misc/thinkpad_acpi.c index 4b434866007e..80ef195c9581 100644 --- a/drivers/misc/thinkpad_acpi.c +++ b/drivers/misc/thinkpad_acpi.c | |||
@@ -2707,7 +2707,7 @@ IBM_PARAM(brightness); | |||
2707 | IBM_PARAM(volume); | 2707 | IBM_PARAM(volume); |
2708 | IBM_PARAM(fan); | 2708 | IBM_PARAM(fan); |
2709 | 2709 | ||
2710 | static int __init acpi_ibm_init(void) | 2710 | static int __init thinkpad_acpi_module_init(void) |
2711 | { | 2711 | { |
2712 | int ret, i; | 2712 | int ret, i; |
2713 | 2713 | ||
@@ -2754,7 +2754,7 @@ static int __init acpi_ibm_init(void) | |||
2754 | proc_dir = proc_mkdir(IBM_DIR, acpi_root_dir); | 2754 | proc_dir = proc_mkdir(IBM_DIR, acpi_root_dir); |
2755 | if (!proc_dir) { | 2755 | if (!proc_dir) { |
2756 | printk(IBM_ERR "unable to create proc dir %s", IBM_DIR); | 2756 | printk(IBM_ERR "unable to create proc dir %s", IBM_DIR); |
2757 | acpi_ibm_exit(); | 2757 | thinkpad_acpi_module_exit(); |
2758 | return -ENODEV; | 2758 | return -ENODEV; |
2759 | } | 2759 | } |
2760 | proc_dir->owner = THIS_MODULE; | 2760 | proc_dir->owner = THIS_MODULE; |
@@ -2764,7 +2764,7 @@ static int __init acpi_ibm_init(void) | |||
2764 | if (ret >= 0 && *ibms[i].param) | 2764 | if (ret >= 0 && *ibms[i].param) |
2765 | ret = ibms[i].write(ibms[i].param); | 2765 | ret = ibms[i].write(ibms[i].param); |
2766 | if (ret < 0) { | 2766 | if (ret < 0) { |
2767 | acpi_ibm_exit(); | 2767 | thinkpad_acpi_module_exit(); |
2768 | return ret; | 2768 | return ret; |
2769 | } | 2769 | } |
2770 | } | 2770 | } |
@@ -2772,7 +2772,7 @@ static int __init acpi_ibm_init(void) | |||
2772 | return 0; | 2772 | return 0; |
2773 | } | 2773 | } |
2774 | 2774 | ||
2775 | static void acpi_ibm_exit(void) | 2775 | static void thinkpad_acpi_module_exit(void) |
2776 | { | 2776 | { |
2777 | int i; | 2777 | int i; |
2778 | 2778 | ||
@@ -2786,5 +2786,5 @@ static void acpi_ibm_exit(void) | |||
2786 | kfree(ibm_thinkpad_ec_found); | 2786 | kfree(ibm_thinkpad_ec_found); |
2787 | } | 2787 | } |
2788 | 2788 | ||
2789 | module_init(acpi_ibm_init); | 2789 | module_init(thinkpad_acpi_module_init); |
2790 | module_exit(acpi_ibm_exit); | 2790 | module_exit(thinkpad_acpi_module_exit); |