summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorTom Rini <[email protected]>2021-05-03 16:48:56 -0400
committerTom Rini <[email protected]>2021-07-07 10:17:54 -0400
commit5503435838f946697e78b9564a45595380a66dff (patch)
tree3eb0c7e04f544de162c2547c6b77a09a5c38af60 /drivers
parent265724cb22d5317eac626e6e773c53e4a0134170 (diff)
pinctrl: mscc: Fix multiple definition error
With gcc-11 we get a multiple errors here as the declarations for mscc_pinctrl_ops and mscc_gpio_ops are missing an extern. CC: Gregory CLEMENT <[email protected]> Cc: Lars Povlsen <[email protected]> Cc: Horatiu Vultur <[email protected]> Signed-off-by: Tom Rini <[email protected]> Reviewed-by: Horatiu Vultur <[email protected]> Reviewed-by: Daniel Schwierzeck <[email protected]>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/pinctrl/mscc/mscc-common.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/pinctrl/mscc/mscc-common.h b/drivers/pinctrl/mscc/mscc-common.h
index 3c5c1faf840..49c84a9f410 100644
--- a/drivers/pinctrl/mscc/mscc-common.h
+++ b/drivers/pinctrl/mscc/mscc-common.h
@@ -61,6 +61,6 @@ int mscc_pinctrl_probe(struct udevice *dev, int num_func,
const struct mscc_pin_data *mscc_pins, int num_pins,
char * const *function_names,
const unsigned long *mscc_gpios);
-const struct pinctrl_ops mscc_pinctrl_ops;
+extern const struct pinctrl_ops mscc_pinctrl_ops;
-const struct dm_gpio_ops mscc_gpio_ops;
+extern const struct dm_gpio_ops mscc_gpio_ops;