soc: bcm: bcm2835-pm: Make local symbol static
authorWei Yongjun <weiyongjun1@huawei.com>
Wed, 16 Jan 2019 05:44:17 +0000 (05:44 +0000)
committerFlorian Fainelli <f.fainelli@gmail.com>
Fri, 1 Feb 2019 05:05:58 +0000 (21:05 -0800)
Fixes the following sparse warning:

drivers/soc/bcm/bcm2835-power.c:556:32: warning:
 symbol 'bcm2835_reset_ops' was not declared. Should it be static?

Fixes: 670c672608a1 ("soc: bcm: bcm2835-pm: Add support for power domains under a new binding.")
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Acked-by: Scott Branden <scott.branden@broadcom.com>
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
drivers/soc/bcm/bcm2835-power.c

index 48412957ec7adb626fe9bd0f68982649cccfedeb..9351349cf0a930cd5c25dedd6bb747970e455e96 100644 (file)
@@ -553,7 +553,7 @@ static int bcm2835_reset_status(struct reset_controller_dev *rcdev,
        }
 }
 
-const struct reset_control_ops bcm2835_reset_ops = {
+static const struct reset_control_ops bcm2835_reset_ops = {
        .reset = bcm2835_reset_reset,
        .status = bcm2835_reset_status,
 };