projects
/
comedi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
edac7e5
)
jr3_pci: fix iomem dereference
author
Ian Abbott
<abbotti@mev.co.uk>
Fri, 28 Sep 2012 10:59:53 +0000
(11:59 +0100)
committer
Ian Abbott
<abbotti@mev.co.uk>
Fri, 28 Sep 2012 10:59:53 +0000
(11:59 +0100)
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 <abbotti@mev.co.uk>
comedi/drivers/jr3_pci.c
patch
|
blob
|
history
diff --git
a/comedi/drivers/jr3_pci.c
b/comedi/drivers/jr3_pci.c
index 220e585c85158c905d58a9e13afaf2f32fedfe85..cfdcfbb37a7106eb609d2e09badd20eb71b020ee 100644
(file)
--- 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);