9
0
Fork 0

generic_memmap_ro/rw: switch to resource

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
This commit is contained in:
Jean-Christophe PLAGNIOL-VILLARD 2011-07-29 05:05:31 +08:00
parent 9856df99de
commit 7a68c0fac7
1 changed files with 2 additions and 2 deletions

View File

@ -263,7 +263,7 @@ int generic_memmap_ro(struct cdev *cdev, void **map, int flags)
if (flags & PROT_WRITE)
return -EACCES;
*map = (void *)cdev->dev->map_base;
*map = dev_get_mem_region(cdev->dev, 0);
return 0;
}
@ -272,7 +272,7 @@ int generic_memmap_rw(struct cdev *cdev, void **map, int flags)
if (!cdev->dev)
return -EINVAL;
*map = (void *)cdev->dev->map_base;
*map = dev_get_mem_region(cdev->dev, 0);
return 0;
}