From: Cornelia Huck Date: Wed, 25 Jul 2007 07:58:08 +0000 (+0200) Subject: driver core: revert "device" link creation check X-Git-Tag: v2.6.23-rc2~150^2~3 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=27907689eedd799a6a0c1a2f18a3563c6e9e9767;p=linux-2.6-omap-h63xx.git driver core: revert "device" link creation check driver core: revert "device" link creation check Commit 2ee97caf0a6602f749ddbfdb1449e383e1212707 introduced an extra check on when to create the "device" symlink. Unfortunately, this breaks input, so let's revert to the old behaviour. Signed-off-by: Cornelia Huck Acked-by: Kay Sievers Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/base/core.c b/drivers/base/core.c index b9bb3995db8..e6738bcbe5a 100644 --- a/drivers/base/core.c +++ b/drivers/base/core.c @@ -678,8 +678,7 @@ static int device_add_class_symlinks(struct device *dev) if (error) goto out_subsys; } - /* only bus-device parents get a "device"-link */ - if (dev->parent && dev->parent->bus) { + if (dev->parent) { error = sysfs_create_link(&dev->kobj, &dev->parent->kobj, "device"); if (error)