Changeset 5174

Show
Ignore:
Timestamp:
04/11/08 01:24:57 (5 years ago)
Author:
djwong
Message:

Subject: [PATCH 1/4] libsensors: Detect OpenFirmware? hwmon devices

On a QS22 blade, the BMC containing the (ibmpex) power meters is enumerated
via Open Firmware. Check for "of_platform" to handle this case.

Signed-off-by: Darrick J. Wong <djwong@…>

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lm-sensors/branches/lm-sensors-3.0.0/lib/sysfs.c

    r5163 r5174  
    533533                entry.chip.bus.nr = 0; 
    534534        } else 
    535         if ((!subsys || !strcmp(subsys, "platform"))) { 
     535        if ((!subsys || !strcmp(subsys, "platform") || 
     536                        !strcmp(subsys, "of_platform"))) { 
    536537                /* must be new ISA (platform driver) */ 
    537538                if (sscanf(dev_name, "%*[a-z0-9_].%d", &entry.chip.addr) != 1)