From: Ian Abbott Date: Fri, 28 Sep 2012 10:59:53 +0000 (+0100) Subject: jr3_pci: fix iomem dereference X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=815e9a9f585613f1802ae4c6b2df3a1d172f5de4;p=comedi.git jr3_pci: fix iomem dereference Correct a direct dereference of I/O memory when writing the 'reset' register in jr3_pci_attach(). Use writel() to write the register. Signed-off-by: Ian Abbott --- diff --git a/comedi/drivers/jr3_pci.c b/comedi/drivers/jr3_pci.c index 220e585c..cfdcfbb3 100644 --- a/comedi/drivers/jr3_pci.c +++ b/comedi/drivers/jr3_pci.c @@ -888,7 +888,7 @@ static int jr3_pci_attach(comedi_device * dev, comedi_devconfig * it) } // 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); printk("Firmare load %d\n", result);