Skip to content

Commit 6eb3578

Browse files
nathanchanceLee Jones
authored andcommitted
mfd: cros_ec: Avoid unneeded internal declaration warning
Clang warns: drivers/mfd/cros_ec_dev.c:509:40: warning: variable 'cros_ec_id' is not needed and will not be emitted [-Wunneeded-internal-declaration] static const struct platform_device_id cros_ec_id[] = { ^ 1 warning generated. Avoid this warning by adding it to the cros_ec_dev_driver definition under the id_table member like all other platform drivers. Signed-off-by: Nathan Chancellor <natechancellor@gmail.com> Signed-off-by: Lee Jones <lee.jones@linaro.org>
1 parent 697894b commit 6eb3578

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/mfd/cros_ec_dev.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -546,6 +546,7 @@ static struct platform_driver cros_ec_dev_driver = {
546546
.name = DRV_NAME,
547547
.pm = &cros_ec_dev_pm_ops,
548548
},
549+
.id_table = cros_ec_id,
549550
.probe = ec_device_probe,
550551
.remove = ec_device_remove,
551552
.shutdown = ec_device_shutdown,

0 commit comments

Comments
 (0)