From 815e9a9f585613f1802ae4c6b2df3a1d172f5de4 Mon Sep 17 00:00:00 2001 From: Ian Abbott Date: Fri, 28 Sep 2012 11:59:53 +0100 Subject: [PATCH] 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 --- comedi/drivers/jr3_pci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.26.2