diff options
author | Tomas Winkler <tomas.winkler@intel.com> | 2012-08-06 17:03:54 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-08-16 12:43:58 -0400 |
commit | 068c0ae9667ea2ae4c2269307ecfde9a9460e641 (patch) | |
tree | 6f534b28050b10d1f336c29b8e7ffa495aca2213 | |
parent | 9a123f19832702753805afe0e93db26799b91b07 (diff) |
mei: use KBUILD_MODNAME when allocating resources from the OS
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/misc/mei/main.c | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/drivers/misc/mei/main.c b/drivers/misc/mei/main.c index 86b73e596263..dea65c2c9203 100644 --- a/drivers/misc/mei/main.c +++ b/drivers/misc/mei/main.c | |||
@@ -41,8 +41,6 @@ | |||
41 | #include <linux/mei.h> | 41 | #include <linux/mei.h> |
42 | #include "interface.h" | 42 | #include "interface.h" |
43 | 43 | ||
44 | static const char mei_driver_name[] = "mei"; | ||
45 | |||
46 | /* The device pointer */ | 44 | /* The device pointer */ |
47 | /* Currently this driver works as long as there is only a single AMT device. */ | 45 | /* Currently this driver works as long as there is only a single AMT device. */ |
48 | struct pci_dev *mei_device; | 46 | struct pci_dev *mei_device; |
@@ -960,7 +958,7 @@ static int __devinit mei_probe(struct pci_dev *pdev, | |||
960 | /* set PCI host mastering */ | 958 | /* set PCI host mastering */ |
961 | pci_set_master(pdev); | 959 | pci_set_master(pdev); |
962 | /* pci request regions for mei driver */ | 960 | /* pci request regions for mei driver */ |
963 | err = pci_request_regions(pdev, mei_driver_name); | 961 | err = pci_request_regions(pdev, KBUILD_MODNAME); |
964 | if (err) { | 962 | if (err) { |
965 | dev_err(&pdev->dev, "failed to get pci regions.\n"); | 963 | dev_err(&pdev->dev, "failed to get pci regions.\n"); |
966 | goto disable_device; | 964 | goto disable_device; |
@@ -985,12 +983,12 @@ static int __devinit mei_probe(struct pci_dev *pdev, | |||
985 | err = request_threaded_irq(pdev->irq, | 983 | err = request_threaded_irq(pdev->irq, |
986 | NULL, | 984 | NULL, |
987 | mei_interrupt_thread_handler, | 985 | mei_interrupt_thread_handler, |
988 | IRQF_ONESHOT, mei_driver_name, dev); | 986 | IRQF_ONESHOT, KBUILD_MODNAME, dev); |
989 | else | 987 | else |
990 | err = request_threaded_irq(pdev->irq, | 988 | err = request_threaded_irq(pdev->irq, |
991 | mei_interrupt_quick_handler, | 989 | mei_interrupt_quick_handler, |
992 | mei_interrupt_thread_handler, | 990 | mei_interrupt_thread_handler, |
993 | IRQF_SHARED, mei_driver_name, dev); | 991 | IRQF_SHARED, KBUILD_MODNAME, dev); |
994 | 992 | ||
995 | if (err) { | 993 | if (err) { |
996 | dev_err(&pdev->dev, "request_threaded_irq failure. irq = %d\n", | 994 | dev_err(&pdev->dev, "request_threaded_irq failure. irq = %d\n", |
@@ -1150,12 +1148,12 @@ static int mei_pci_resume(struct device *device) | |||
1150 | err = request_threaded_irq(pdev->irq, | 1148 | err = request_threaded_irq(pdev->irq, |
1151 | NULL, | 1149 | NULL, |
1152 | mei_interrupt_thread_handler, | 1150 | mei_interrupt_thread_handler, |
1153 | IRQF_ONESHOT, mei_driver_name, dev); | 1151 | IRQF_ONESHOT, KBUILD_MODNAME, dev); |
1154 | else | 1152 | else |
1155 | err = request_threaded_irq(pdev->irq, | 1153 | err = request_threaded_irq(pdev->irq, |
1156 | mei_interrupt_quick_handler, | 1154 | mei_interrupt_quick_handler, |
1157 | mei_interrupt_thread_handler, | 1155 | mei_interrupt_thread_handler, |
1158 | IRQF_SHARED, mei_driver_name, dev); | 1156 | IRQF_SHARED, KBUILD_MODNAME, dev); |
1159 | 1157 | ||
1160 | if (err) { | 1158 | if (err) { |
1161 | dev_err(&pdev->dev, "request_threaded_irq failed: irq = %d.\n", | 1159 | dev_err(&pdev->dev, "request_threaded_irq failed: irq = %d.\n", |
@@ -1182,7 +1180,7 @@ static SIMPLE_DEV_PM_OPS(mei_pm_ops, mei_pci_suspend, mei_pci_resume); | |||
1182 | * PCI driver structure | 1180 | * PCI driver structure |
1183 | */ | 1181 | */ |
1184 | static struct pci_driver mei_driver = { | 1182 | static struct pci_driver mei_driver = { |
1185 | .name = mei_driver_name, | 1183 | .name = KBUILD_MODNAME, |
1186 | .id_table = mei_pci_tbl, | 1184 | .id_table = mei_pci_tbl, |
1187 | .probe = mei_probe, | 1185 | .probe = mei_probe, |
1188 | .remove = __devexit_p(mei_remove), | 1186 | .remove = __devexit_p(mei_remove), |