summaryrefslogtreecommitdiff
path: root/drivers/staging/comedi/drivers/ni_6527.c
diff options
context:
space:
mode:
authorH Hartley Sweeten <hsweeten@visionengravers.com>2013-10-01 15:08:10 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-10-03 14:09:52 -0700
commit36edca14779c2784daaf81d2306f65d500942154 (patch)
tree744a3607ed74c642078e3a5e6ee308be1e4406ff /drivers/staging/comedi/drivers/ni_6527.c
parent617c8264decbd60a145b4948cf07f6b803a8dffd (diff)
staging: comedi: ni_6527: remove DRIVER_NAME define
The request_irq() call should be using dev->board_name to better identify the irq user. Remove the DRIVER_NAME define and just open code the 'driver_name' in the comedi_driver and the 'name' in the pci_driver declarations. Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com> Reviewed-by: Ian Abbott <abbotti@mev.co.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/comedi/drivers/ni_6527.c')
-rw-r--r--drivers/staging/comedi/drivers/ni_6527.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/drivers/staging/comedi/drivers/ni_6527.c b/drivers/staging/comedi/drivers/ni_6527.c
index 44557c9671ac..f3ff329847b6 100644
--- a/drivers/staging/comedi/drivers/ni_6527.c
+++ b/drivers/staging/comedi/drivers/ni_6527.c
@@ -45,8 +45,6 @@ Updated: Sat, 25 Jan 2003 13:24:40 -0800
#include "comedi_fc.h"
#include "mite.h"
-#define DRIVER_NAME "ni_6527"
-
#define NI6527_DIO_SIZE 4096
#define NI6527_MITE_SIZE 4096
@@ -396,7 +394,7 @@ static int ni6527_auto_attach(struct comedi_device *dev,
writeb(0x00, devpriv->mite->daq_io_addr + Master_Interrupt_Control);
ret = request_irq(mite_irq(devpriv->mite), ni6527_interrupt,
- IRQF_SHARED, DRIVER_NAME, dev);
+ IRQF_SHARED, dev->board_name, dev);
if (ret < 0)
dev_warn(dev->class_dev, "irq not available\n");
else
@@ -422,7 +420,7 @@ static void ni6527_detach(struct comedi_device *dev)
}
static struct comedi_driver ni6527_driver = {
- .driver_name = DRIVER_NAME,
+ .driver_name = "ni_6527",
.module = THIS_MODULE,
.auto_attach = ni6527_auto_attach,
.detach = ni6527_detach,
@@ -442,7 +440,7 @@ static DEFINE_PCI_DEVICE_TABLE(ni6527_pci_table) = {
MODULE_DEVICE_TABLE(pci, ni6527_pci_table);
static struct pci_driver ni6527_pci_driver = {
- .name = DRIVER_NAME,
+ .name = "ni_6527",
.id_table = ni6527_pci_table,
.probe = ni6527_pci_probe,
.remove = comedi_pci_auto_unconfig,