diff options
Diffstat (limited to 'drivers/extcon/extcon-rt8973a.c')
-rw-r--r-- | drivers/extcon/extcon-rt8973a.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/extcon/extcon-rt8973a.c b/drivers/extcon/extcon-rt8973a.c index a784b2d5ee72..9ccd5af89d1c 100644 --- a/drivers/extcon/extcon-rt8973a.c +++ b/drivers/extcon/extcon-rt8973a.c | |||
@@ -582,10 +582,8 @@ static int rt8973a_muic_i2c_probe(struct i2c_client *i2c, | |||
582 | return -EINVAL; | 582 | return -EINVAL; |
583 | 583 | ||
584 | info = devm_kzalloc(&i2c->dev, sizeof(*info), GFP_KERNEL); | 584 | info = devm_kzalloc(&i2c->dev, sizeof(*info), GFP_KERNEL); |
585 | if (!info) { | 585 | if (!info) |
586 | dev_err(&i2c->dev, "failed to allocate memory\n"); | ||
587 | return -ENOMEM; | 586 | return -ENOMEM; |
588 | } | ||
589 | i2c_set_clientdata(i2c, info); | 587 | i2c_set_clientdata(i2c, info); |
590 | 588 | ||
591 | info->dev = &i2c->dev; | 589 | info->dev = &i2c->dev; |
@@ -681,7 +679,7 @@ static int rt8973a_muic_i2c_remove(struct i2c_client *i2c) | |||
681 | return 0; | 679 | return 0; |
682 | } | 680 | } |
683 | 681 | ||
684 | static struct of_device_id rt8973a_dt_match[] = { | 682 | static const struct of_device_id rt8973a_dt_match[] = { |
685 | { .compatible = "richtek,rt8973a-muic" }, | 683 | { .compatible = "richtek,rt8973a-muic" }, |
686 | { }, | 684 | { }, |
687 | }; | 685 | }; |