From: H Hartley Sweeten Date: Wed, 19 Sep 2012 01:49:28 +0000 (-0700) Subject: staging: comedi: daqboard2000: use the driver name for the resource name X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=3dc031dd21ffb8d389c329e3429888212df467aa;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git staging: comedi: daqboard2000: use the driver name for the resource name Use the dev->driver->driver_name instead of the literal string for the reqource name passed to comedi_pci_enable(). Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/comedi/drivers/daqboard2000.c b/drivers/staging/comedi/drivers/daqboard2000.c index 00360e48d63..ff81829323f 100644 --- a/drivers/staging/comedi/drivers/daqboard2000.c +++ b/drivers/staging/comedi/drivers/daqboard2000.c @@ -715,7 +715,7 @@ static int daqboard2000_attach_pci(struct comedi_device *dev, return -ENOMEM; devpriv = dev->private; - result = comedi_pci_enable(pcidev, "daqboard2000"); + result = comedi_pci_enable(pcidev, dev->driver->driver_name); if (result < 0) return result; dev->iobase = 1; /* the "detach" needs this */