diff options
| -rw-r--r-- | drivers/i2c/i2c-core.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/i2c/i2c-core.c b/drivers/i2c/i2c-core.c index 29d3f045a2bf..3be58f89ac77 100644 --- a/drivers/i2c/i2c-core.c +++ b/drivers/i2c/i2c-core.c | |||
| @@ -1134,6 +1134,9 @@ static void acpi_i2c_register_devices(struct i2c_adapter *adap) | |||
| 1134 | acpi_handle handle; | 1134 | acpi_handle handle; |
| 1135 | acpi_status status; | 1135 | acpi_status status; |
| 1136 | 1136 | ||
| 1137 | if (!adap->dev.parent) | ||
| 1138 | return; | ||
| 1139 | |||
| 1137 | handle = ACPI_HANDLE(adap->dev.parent); | 1140 | handle = ACPI_HANDLE(adap->dev.parent); |
| 1138 | if (!handle) | 1141 | if (!handle) |
| 1139 | return; | 1142 | return; |
