diff --git a/drivers/base/driver.c b/drivers/base/driver.c index 81b35031a..3363b5667 100644 --- a/drivers/base/driver.c +++ b/drivers/base/driver.c @@ -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) diff --git a/include/driver.h b/include/driver.h index 76fd4b172..0ee3b4554 100644 --- a/include/driver.h +++ b/include/driver.h @@ -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);