Retire unused dev_named() function.
This commit is contained in:
parent
a543c5b761
commit
4583eb7610
@ -604,19 +604,6 @@ make_dev_cred(struct cdevsw *devsw, int minornr, struct ucred *cr, uid_t uid,
|
||||
return (dev);
|
||||
}
|
||||
|
||||
int
|
||||
dev_named(struct cdev *pdev, const char *name)
|
||||
{
|
||||
struct cdev *cdev;
|
||||
|
||||
if (strcmp(devtoname(pdev), name) == 0)
|
||||
return (1);
|
||||
LIST_FOREACH(cdev, &pdev->si_children, si_siblings)
|
||||
if (strcmp(devtoname(cdev), name) == 0)
|
||||
return (1);
|
||||
return (0);
|
||||
}
|
||||
|
||||
void
|
||||
dev_depends(struct cdev *pdev, struct cdev *cdev)
|
||||
{
|
||||
|
@ -247,7 +247,6 @@ int count_dev(struct cdev *_dev);
|
||||
void destroy_dev(struct cdev *_dev);
|
||||
struct cdevsw *dev_refthread(struct cdev *_dev);
|
||||
void dev_relthread(struct cdev *_dev);
|
||||
int dev_named(struct cdev *_pdev, const char *_name);
|
||||
void dev_depends(struct cdev *_pdev, struct cdev *_cdev);
|
||||
void dev_ref(struct cdev *dev);
|
||||
void dev_refl(struct cdev *dev);
|
||||
|
Loading…
x
Reference in New Issue
Block a user