diff options
Diffstat (limited to 'include/linux/i2c.h')
-rw-r--r-- | include/linux/i2c.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/include/linux/i2c.h b/include/linux/i2c.h index 4bae0b72ed3c..9391a491501a 100644 --- a/include/linux/i2c.h +++ b/include/linux/i2c.h | |||
@@ -387,7 +387,6 @@ static inline void i2c_set_adapdata(struct i2c_adapter *dev, void *data) | |||
387 | static inline int i2c_parent_is_i2c_adapter(const struct i2c_adapter *adapter) | 387 | static inline int i2c_parent_is_i2c_adapter(const struct i2c_adapter *adapter) |
388 | { | 388 | { |
389 | return adapter->dev.parent != NULL | 389 | return adapter->dev.parent != NULL |
390 | && adapter->dev.parent->bus == &i2c_bus_type | ||
391 | && adapter->dev.parent->type == &i2c_adapter_type; | 390 | && adapter->dev.parent->type == &i2c_adapter_type; |
392 | } | 391 | } |
393 | 392 | ||