]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
staging: comedi: jr3_pci: fix iomem dereference
authorIan Abbott <abbotti@mev.co.uk>
Thu, 27 Sep 2012 16:45:27 +0000 (17:45 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 7 Oct 2012 15:35:52 +0000 (08:35 -0700)
commit e1878957b4676a17cf398f7f5723b365e9a2ca48 upstream.

Correct a direct dereference of I/O memory to use an appropriate I/O
memory access function.  Note that the pointer being dereferenced is not
currently tagged with `__iomem` but I plan to correct that for 3.7.

Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/jr3_pci.c

index d536a11edb951d0743d93d562b718ea5dfb5a721..cf523e533247fce02ad0e71ab837b04e6a3cf2a5 100644 (file)
@@ -883,7 +883,7 @@ static int jr3_pci_attach(struct comedi_device *dev,
        }
 
        /*  Reset DSP card */
-       devpriv->iobase->channel[0].reset = 0;
+       writel(0, &devpriv->iobase->channel[0].reset);
 
        result = comedi_load_firmware(dev, "jr3pci.idm", jr3_download_firmware);
        dev_dbg(dev->hw_dev, "Firmare load %d\n", result);