From: tonyj@suse.de
To: linux-kernel@vger.kernel.org
Cc: gregkh@suse.de, Kay Sievers <kay.sievers@vrfy.org>
Subject: [patch 6/6] Misc cleanup
Date: Tue, 07 Aug 2007 22:28:48 -0700 [thread overview]
Message-ID: <20070808053036.985965000@suse.de> (raw)
In-Reply-To: <20070808052842.451400000@suse.de>
[-- Attachment #1: adm1025-fixup.patch --]
[-- Type: text/plain, Size: 1330 bytes --]
Misc cleanup post removal of class_device. adm1025_group_opt is unused.
Signed-off-by: Tony Jones <tonyj@suse.de>
Signed-off-by: Kay Sievers <kay.sievers@vrfy.org>
---
drivers/hwmon/adm1025.c | 13 -------------
1 file changed, 13 deletions(-)
--- a/drivers/hwmon/adm1025.c
+++ b/drivers/hwmon/adm1025.c
@@ -347,17 +347,6 @@ static const struct attribute_group adm1
.attrs = adm1025_attributes,
};
-static struct attribute *adm1025_attributes_opt[] = {
- &dev_attr_in4_input.attr,
- &dev_attr_in4_min.attr,
- &dev_attr_in4_max.attr,
- NULL
-};
-
-static const struct attribute_group adm1025_group_opt = {
- .attrs = adm1025_attributes_opt,
-};
-
/*
* The following function does more than just detection. If detection
* succeeds, it also registers the new chip.
@@ -482,7 +471,6 @@ static int adm1025_detect(struct i2c_ada
exit_remove:
sysfs_remove_group(&new_client->dev.kobj, &adm1025_group);
- sysfs_remove_group(&new_client->dev.kobj, &adm1025_group_opt);
exit_detach:
i2c_detach_client(new_client);
exit_free:
@@ -540,7 +528,6 @@ static int adm1025_detach_client(struct
hwmon_device_unregister(data->hwmon_dev);
sysfs_remove_group(&client->dev.kobj, &adm1025_group);
- sysfs_remove_group(&client->dev.kobj, &adm1025_group_opt);
if ((err = i2c_detach_client(client)))
return err;
--
prev parent reply other threads:[~2007-08-08 5:34 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-08-08 5:28 [patch 0/6] Convert from class_device to device [char, hwmon, video] tonyj
2007-08-08 5:28 ` [patch 1/6] Convert from class_device to device in drivers/char/drm tonyj
2007-08-14 22:35 ` Greg KH
2007-08-08 5:28 ` [patch 2/6] Convert from class_device to device in drivers/char tonyj
2007-08-08 5:28 ` [patch 3/6] Convert from class_device to device for hwmon tonyj
2007-08-14 22:35 ` Greg KH
2007-08-08 5:28 ` [patch 4/6] Convert from class_device to device for hwmon users tonyj
2007-08-08 5:28 ` [patch 5/6] Convert from class_device to device for drivers/video tonyj
2007-08-08 5:28 ` tonyj [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20070808053036.985965000@suse.de \
--to=tonyj@suse.de \
--cc=gregkh@suse.de \
--cc=kay.sievers@vrfy.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome