summaryrefslogtreecommitdiff
path: root/namedev.c
diff options
context:
space:
mode:
authorgreg@kroah.com <greg@kroah.com>2003-12-02 18:18:21 -0800
committerGreg KH <gregkh@suse.de>2005-04-26 21:13:05 -0700
commit5c6f0fb0dcd999b96097b38311df439a85b6b799 (patch)
tree0371aab4dda165b31a37127ed616e418ab5f6d13 /namedev.c
parent8448980019ab305c99b7ff47185da08c7bc33fe0 (diff)
[PATCH] rename namedev's get_attr() to be main namedev_name_device() as that's what it really is.
Diffstat (limited to 'namedev.c')
-rw-r--r--namedev.c14
1 files changed, 1 insertions, 13 deletions
diff --git a/namedev.c b/namedev.c
index ea64f3404f..deb1d929e0 100644
--- a/namedev.c
+++ b/namedev.c
@@ -796,7 +796,6 @@ static int do_number(struct sysfs_class_device *class_dev, struct udevice *udev,
return -ENODEV;
}
-
static int do_topology(struct sysfs_class_device *class_dev, struct udevice *udev, struct sysfs_device *sysfs_device)
{
struct config_device *dev;
@@ -901,7 +900,7 @@ static void do_kernelname(struct sysfs_class_device *class_dev, struct udevice *
}
}
-static int get_attr(struct sysfs_class_device *class_dev, struct udevice *udev)
+int namedev_name_device(struct sysfs_class_device *class_dev, struct udevice *udev)
{
struct sysfs_device *sysfs_device = NULL;
struct sysfs_class_device *class_dev_parent = NULL;
@@ -994,17 +993,6 @@ done:
return 0;
}
-int namedev_name_device(struct sysfs_class_device *class_dev, struct udevice *dev)
-{
- int retval;
-
- retval = get_attr(class_dev, dev);
- if (retval)
- dbg("get_attr failed");
-
- return retval;
-}
-
int namedev_init(void)
{
int retval;