Skip to content

Commit bc3f4b5

Browse files
nathanchancebleungatchromium
authored andcommitted
platform/chrome: chromeos_tbmc - Remove unneeded const
Clang warns: drivers/platform/chrome/chromeos_tbmc.c:102:14: warning: duplicate 'const' declaration specifier [-Wduplicate-decl-specifier] static const SIMPLE_DEV_PM_OPS(chromeos_tbmc_pm_ops, NULL, ^ ./include/linux/pm.h:365:56: note: expanded from macro 'SIMPLE_DEV_PM_OPS' ^ 1 warning generated. SIMPLE_DEV_PM_OPS is already declared as const, this one is unnecessary so remove it. Signed-off-by: Nathan Chancellor <natechancellor@gmail.com> Signed-off-by: Benson Leung <bleung@chromium.org>
1 parent da1cf5a commit bc3f4b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/platform/chrome/chromeos_tbmc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ static const struct acpi_device_id chromeos_tbmc_acpi_device_ids[] = {
9999
};
100100
MODULE_DEVICE_TABLE(acpi, chromeos_tbmc_acpi_device_ids);
101101

102-
static const SIMPLE_DEV_PM_OPS(chromeos_tbmc_pm_ops, NULL,
102+
static SIMPLE_DEV_PM_OPS(chromeos_tbmc_pm_ops, NULL,
103103
chromeos_tbmc_resume);
104104

105105
static struct acpi_driver chromeos_tbmc_driver = {

0 commit comments

Comments
 (0)