diff --git a/drivers/base/driver.c b/drivers/base/driver.c index 81b3503..3363b56 100644 --- a/drivers/base/driver.c +++ b/drivers/base/driver.c @@ -350,12 +350,6 @@ } 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 76fd4b1..0ee3b45 100644 --- a/include/driver.h +++ b/include/driver.h @@ -331,8 +331,6 @@ 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);