mirror of https://gitee.com/openkylin/linux.git
i8327: fix outb() parameter order
In i8237A_resume(), when resetting the DMA controller, the parameters to dma_outb() were mixed up. Signed-off-by: Clemens Ladisch <clemens@ladisch.de> [ cleaned up the file a tiny bit. ] Signed-off-by: Ingo Molnar <mingo@elte.hu>
This commit is contained in:
parent
d315760ffa
commit
b52af40923
|
@ -28,8 +28,8 @@ static int i8237A_resume(struct sys_device *dev)
|
|||
|
||||
flags = claim_dma_lock();
|
||||
|
||||
dma_outb(DMA1_RESET_REG, 0);
|
||||
dma_outb(DMA2_RESET_REG, 0);
|
||||
dma_outb(0, DMA1_RESET_REG);
|
||||
dma_outb(0, DMA2_RESET_REG);
|
||||
|
||||
for (i = 0; i < 8; i++) {
|
||||
set_dma_addr(i, 0x000000);
|
||||
|
@ -68,5 +68,4 @@ static int __init i8237A_init_sysfs(void)
|
|||
error = sysdev_register(&device_i8237A);
|
||||
return error;
|
||||
}
|
||||
|
||||
device_initcall(i8237A_init_sysfs);
|
||||
|
|
Loading…
Reference in New Issue