Skip to content

Commit ed8c975

Browse files
Min-Huajoergroedel
authored andcommitted
iommu/apple-dart: mark apple_dart_pm_ops static
This patch fixes the following sparse warning: drivers/iommu/apple-dart.c:1279:1: sparse: warning: symbol 'apple_dart_pm_ops' was not declared. Should it be static? No functional change intended. Signed-off-by: Min-Hua Chen <[email protected]> Acked-by: Sven Peter <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Joerg Roedel <[email protected]>
1 parent 06c2afb commit ed8c975

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/iommu/apple-dart.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1276,7 +1276,7 @@ static __maybe_unused int apple_dart_resume(struct device *dev)
12761276
return 0;
12771277
}
12781278

1279-
DEFINE_SIMPLE_DEV_PM_OPS(apple_dart_pm_ops, apple_dart_suspend, apple_dart_resume);
1279+
static DEFINE_SIMPLE_DEV_PM_OPS(apple_dart_pm_ops, apple_dart_suspend, apple_dart_resume);
12801280

12811281
static const struct of_device_id apple_dart_of_match[] = {
12821282
{ .compatible = "apple,t8103-dart", .data = &apple_dart_hw_t8103 },

0 commit comments

Comments
 (0)