iommu/apple-dart: mark apple_dart_pm_ops static
Subsystems (2)
PATCH v2 1/1 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]>
---
Change since v1:
fix a typo
--- drivers/iommu/apple-dart.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/iommu/apple-dart.c +1 -1
@@ -1276,7 +1276,7 @@ static __maybe_unused int apple_dart_resume(struct device *dev)return 0 ; } -DEFINE_SIMPLE_DEV_PM_OPS (apple_dart_pm_ops, apple_dart_suspend, apple_dart_resume); +static DEFINE_SIMPLE_DEV_PM_OPS(apple_dart_pm_ops, apple_dart_suspend, apple_dart_resume);static const struct of_device_id apple_dart_of_match[] = { { .compatible ="apple,t8103-dart" , .data = &apple_dart_hw_t8103 },
Signature · 1 line
2.34.1
Quoted 2 lines · Min-Hua Chen
Signed-off-by Min-Hua Chen <[email protected]>Acked-by Sven Peter <[email protected]>
Applied, thanks.