9
0
Fork 0

drivers: remove unused function dev_protect()

Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
Marc Kleine-Budde 2015-03-01 13:32:07 +01:00 committed by Sascha Hauer
parent 603ba8c1ba
commit c961485abf
2 changed files with 0 additions and 8 deletions

View File

@ -350,12 +350,6 @@ void __iomem *dev_request_mem_region(struct device_d *dev, int num)
}
EXPORT_SYMBOL(dev_request_mem_region);
int dev_protect(struct device_d *dev, size_t count, unsigned long offset, int prot)
{
printf("%s: currently broken\n", __func__);
return -EINVAL;
}
int generic_memmap_ro(struct cdev *cdev, void **map, int flags)
{
if (!cdev->dev)

View File

@ -331,8 +331,6 @@ struct driver_d *get_driver_by_name(const char *name);
struct cdev;
int dev_protect(struct device_d *dev, size_t count, unsigned long offset, int prot);
/* These are used by drivers which work with direct memory accesses */
ssize_t mem_read(struct cdev *cdev, void *buf, size_t count, loff_t offset, ulong flags);
ssize_t mem_write(struct cdev *cdev, const void *buf, size_t count, loff_t offset, ulong flags);