Merge git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core-2.6
* git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core-2.6: Driver-Core: extend devnode callbacks to provide permissions
This commit is contained in:
@@ -1057,14 +1057,14 @@ static const struct file_operations usblp_fops = {
|
||||
.release = usblp_release,
|
||||
};
|
||||
|
||||
static char *usblp_nodename(struct device *dev)
|
||||
static char *usblp_devnode(struct device *dev, mode_t *mode)
|
||||
{
|
||||
return kasprintf(GFP_KERNEL, "usb/%s", dev_name(dev));
|
||||
}
|
||||
|
||||
static struct usb_class_driver usblp_class = {
|
||||
.name = "lp%d",
|
||||
.nodename = usblp_nodename,
|
||||
.devnode = usblp_devnode,
|
||||
.fops = &usblp_fops,
|
||||
.minor_base = USBLP_MINOR_BASE,
|
||||
};
|
||||
|
Reference in New Issue
Block a user