diff options
author | Chanwoo Choi <cw00.choi@samsung.com> | 2015-03-06 19:41:36 +0300 |
---|---|---|
committer | Chanwoo Choi <cw00.choi@samsung.com> | 2015-03-07 16:58:28 +0300 |
commit | 34825e511971e193db16a96350faeb60eff0d842 (patch) | |
tree | 058226d06629b1ee9fed1523260ffb5ed9b27d47 /drivers/extcon/extcon-rt8973a.c | |
parent | f68a8342b1082d9a4b084cb085396e562899bc62 (diff) | |
download | linux-34825e511971e193db16a96350faeb60eff0d842.tar.xz |
extcon: Fix the checkpatch warning
This patch fixes the checkpatch warning about coding style.
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
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, return -EINVAL; info = devm_kzalloc(&i2c->dev, sizeof(*info), GFP_KERNEL); - if (!info) { - dev_err(&i2c->dev, "failed to allocate memory\n"); + if (!info) return -ENOMEM; - } i2c_set_clientdata(i2c, info); info->dev = &i2c->dev; @@ -681,7 +679,7 @@ static int rt8973a_muic_i2c_remove(struct i2c_client *i2c) return 0; } -static struct of_device_id rt8973a_dt_match[] = { +static const struct of_device_id rt8973a_dt_match[] = { { .compatible = "richtek,rt8973a-muic" }, { }, }; |