]> git.baikalelectronics.ru Git - kernel.git/commit
mfd: lpc_ich: Assign subdevice ids automatically
authorMika Westerberg <mika.westerberg@linux.intel.com>
Tue, 9 Jun 2015 09:17:07 +0000 (12:17 +0300)
committerLee Jones <lee.jones@linaro.org>
Mon, 22 Jun 2015 11:25:30 +0000 (12:25 +0100)
commit04466523c2b20e00fca86e28e9cd1f114f93ea8f
treea7b19d8cc23079f8b9c6cedbefc0250ab7952fa4
parent461edda91165752a8009cf4d9e774a6b9dc7659c
mfd: lpc_ich: Assign subdevice ids automatically

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: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/lpc_ich.c