* [lm-sensors] [PATCH 4/5] hwmon: (ibmpex) Initialize sysfs attributes
@ 2011-05-24 19:48 Guenter Roeck
2011-06-11 9:37 ` [lm-sensors] [PATCH 4/5] hwmon: (ibmpex) Initialize sysfs Jean Delvare
2011-06-11 16:06 ` Guenter Roeck
0 siblings, 2 replies; 3+ messages in thread
From: Guenter Roeck @ 2011-05-24 19:48 UTC (permalink / raw)
To: lm-sensors
Initialize dynamically allocated sysfs attributes before device_create_file()
call to suppress lockdep_init_map() warning if lockdep debugging is enabled.
Signed-off-by: Guenter Roeck <guenter.roeck@ericsson.com>
---
Compile tested only.
drivers/hwmon/ibmpex.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/drivers/hwmon/ibmpex.c b/drivers/hwmon/ibmpex.c
index 06d4eaf..41dbf81 100644
--- a/drivers/hwmon/ibmpex.c
+++ b/drivers/hwmon/ibmpex.c
@@ -358,6 +358,7 @@ static int create_sensor(struct ibmpex_bmc_data *data, int type,
else if (type = POWER_SENSOR)
sprintf(n, power_sensor_name_templates[func], "power", counter);
+ sysfs_attr_init(&data->sensors[sensor].attr[func].dev_attr.attr);
data->sensors[sensor].attr[func].dev_attr.attr.name = n;
data->sensors[sensor].attr[func].dev_attr.attr.mode = S_IRUGO;
data->sensors[sensor].attr[func].dev_attr.show = ibmpex_show_sensor;
--
1.7.3.1
_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [lm-sensors] [PATCH 4/5] hwmon: (ibmpex) Initialize sysfs
2011-05-24 19:48 [lm-sensors] [PATCH 4/5] hwmon: (ibmpex) Initialize sysfs attributes Guenter Roeck
@ 2011-06-11 9:37 ` Jean Delvare
2011-06-11 16:06 ` Guenter Roeck
1 sibling, 0 replies; 3+ messages in thread
From: Jean Delvare @ 2011-06-11 9:37 UTC (permalink / raw)
To: lm-sensors
On Tue, 24 May 2011 13:10:13 -0700, Guenter Roeck wrote:
> Initialize dynamically allocated sysfs attributes before device_create_file()
> call to suppress lockdep_init_map() warning if lockdep debugging is enabled.
>
> Signed-off-by: Guenter Roeck <guenter.roeck@ericsson.com>
> ---
> Compile tested only.
Can't test either, but looks good to me:
Acked-by: Jean Delvare <khali@linux-fr.org>
Candidate for stable series?
>
> drivers/hwmon/ibmpex.c | 1 +
> 1 files changed, 1 insertions(+), 0 deletions(-)
>
> diff --git a/drivers/hwmon/ibmpex.c b/drivers/hwmon/ibmpex.c
> index 06d4eaf..41dbf81 100644
> --- a/drivers/hwmon/ibmpex.c
> +++ b/drivers/hwmon/ibmpex.c
> @@ -358,6 +358,7 @@ static int create_sensor(struct ibmpex_bmc_data *data, int type,
> else if (type = POWER_SENSOR)
> sprintf(n, power_sensor_name_templates[func], "power", counter);
>
> + sysfs_attr_init(&data->sensors[sensor].attr[func].dev_attr.attr);
> data->sensors[sensor].attr[func].dev_attr.attr.name = n;
> data->sensors[sensor].attr[func].dev_attr.attr.mode = S_IRUGO;
> data->sensors[sensor].attr[func].dev_attr.show = ibmpex_show_sensor;
--
Jean Delvare
_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [lm-sensors] [PATCH 4/5] hwmon: (ibmpex) Initialize sysfs
2011-05-24 19:48 [lm-sensors] [PATCH 4/5] hwmon: (ibmpex) Initialize sysfs attributes Guenter Roeck
2011-06-11 9:37 ` [lm-sensors] [PATCH 4/5] hwmon: (ibmpex) Initialize sysfs Jean Delvare
@ 2011-06-11 16:06 ` Guenter Roeck
1 sibling, 0 replies; 3+ messages in thread
From: Guenter Roeck @ 2011-06-11 16:06 UTC (permalink / raw)
To: lm-sensors
On Sat, Jun 11, 2011 at 05:37:41AM -0400, Jean Delvare wrote:
> On Tue, 24 May 2011 13:10:13 -0700, Guenter Roeck wrote:
> > Initialize dynamically allocated sysfs attributes before device_create_file()
> > call to suppress lockdep_init_map() warning if lockdep debugging is enabled.
> >
> > Signed-off-by: Guenter Roeck <guenter.roeck@ericsson.com>
> > ---
> > Compile tested only.
>
> Can't test either, but looks good to me:
>
> Acked-by: Jean Delvare <khali@linux-fr.org>
>
Applied,
> Candidate for stable series?
>
Yes, added Cc:.
Thanks,
Guenter
_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-06-11 16:06 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-05-24 19:48 [lm-sensors] [PATCH 4/5] hwmon: (ibmpex) Initialize sysfs attributes Guenter Roeck
2011-06-11 9:37 ` [lm-sensors] [PATCH 4/5] hwmon: (ibmpex) Initialize sysfs Jean Delvare
2011-06-11 16:06 ` Guenter Roeck
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.