mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-25 03:01:36 +01:00
mmio print addr
This commit is contained in:
@@ -48,7 +48,7 @@ static int myinit(void)
|
||||
major = register_chrdev(0, CDEV_NAME, &fops);
|
||||
mmio = (void __iomem *)mmio_addr;
|
||||
if (request_mem_region(mmio_addr, MMIO_LEN, CDEV_NAME) == NULL) {
|
||||
pr_info("request_mem_region\n");
|
||||
pr_info("request_mem_region mmio = %p\n", mmio);
|
||||
goto error;
|
||||
}
|
||||
ioremap(mmio_addr, 8);
|
||||
|
||||
Reference in New Issue
Block a user