Skip to content

Commit

Permalink
platform/chrome: chromeos_tbmc - Remove unneeded const
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Nathan Chancellor authored and Benson Leung committed Oct 10, 2018
1 parent da1cf5a commit bc3f4b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/platform/chrome/chromeos_tbmc.c
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ static const struct acpi_device_id chromeos_tbmc_acpi_device_ids[] = {
};
MODULE_DEVICE_TABLE(acpi, chromeos_tbmc_acpi_device_ids);

static const SIMPLE_DEV_PM_OPS(chromeos_tbmc_pm_ops, NULL,
static SIMPLE_DEV_PM_OPS(chromeos_tbmc_pm_ops, NULL,
chromeos_tbmc_resume);

static struct acpi_driver chromeos_tbmc_driver = {
Expand Down

0 comments on commit bc3f4b5

Please sign in to comment.