diff options
Diffstat (limited to 'drivers/i2c/i2c-core-base.c')
-rw-r--r-- | drivers/i2c/i2c-core-base.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/i2c/i2c-core-base.c b/drivers/i2c/i2c-core-base.c index f26ed495d384..9c440fa6a3dd 100644 --- a/drivers/i2c/i2c-core-base.c +++ b/drivers/i2c/i2c-core-base.c | |||
@@ -832,7 +832,7 @@ EXPORT_SYMBOL_GPL(i2c_new_device); | |||
832 | */ | 832 | */ |
833 | void i2c_unregister_device(struct i2c_client *client) | 833 | void i2c_unregister_device(struct i2c_client *client) |
834 | { | 834 | { |
835 | if (!client) | 835 | if (IS_ERR_OR_NULL(client)) |
836 | return; | 836 | return; |
837 | 837 | ||
838 | if (client->dev.of_node) { | 838 | if (client->dev.of_node) { |