Jean Delvare 47b6e477ed i2c: Not all adapters have a parent
The code in acpi_i2c_register_devices() assumes that all i2c adapters
have a parent. This is not necessarily the case, for example the
i2c-stub driver instantiate a virtual i2c adapter without a parent.
Check for this to avoid a NULL pointer deference.

Signed-off-by: Jean Delvare <jdelvare@suse.de>
Acked-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
2013-10-10 10:22:31 +02:00
..
2012-10-08 12:46:32 +02:00
2013-08-23 10:22:20 +02:00
2012-03-26 21:47:19 +02:00
2013-10-10 10:22:31 +02:00
2012-03-26 21:47:19 +02:00
2013-02-22 23:31:31 -05:00
2013-08-23 10:22:20 +02:00
2013-08-19 19:46:30 +02:00
2012-10-28 21:37:00 +01:00
2013-09-13 15:09:52 +02:00
2012-10-28 21:37:00 +01:00