• Mika Westerberg's avatar
    mfd: lpc_ich: Assign subdevice ids automatically · 1abf25a2
    Mika Westerberg authored
    Using -1 as platform device id means that the platform driver core will not
    assign any id to the device (the device name will not have id at all). This
    results problems on systems that have multiple PCHs (Platform Controller
    HUBs) because all of them also include their own copy of LPC device.
    
    All the subsequent device creations will fail because there already exists
    platform device with the same name.
    
    Fix this by passing PLATFORM_DEVID_AUTO as platform device id. This makes
    the platform device core to allocate new ids automatically.
    Signed-off-by: default avatarMika Westerberg <mika.westerberg@linux.intel.com>
    Signed-off-by: default avatarLee Jones <lee.jones@linaro.org>
    1abf25a2
lpc_ich.c 29.7 KB