Commit ac571991 authored by Geert Uytterhoeven's avatar Geert Uytterhoeven Committed by Linus Walleij

gpio: devres: Switch to EXPORT_SYMBOL_GPL()

Change all exported symbols for managed GPIO functions from
EXPORT_SYMBOL() to EXPORT_SYMBOL_GPL(), like is used for their
non-managed counterparts.
Signed-off-by: default avatarGeert Uytterhoeven <geert+renesas@glider.be>
Link: https://lore.kernel.org/r/20190906084539.21838-5-geert+renesas@glider.beSigned-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent 6d662455
...@@ -59,7 +59,7 @@ struct gpio_desc *__must_check devm_gpiod_get(struct device *dev, ...@@ -59,7 +59,7 @@ struct gpio_desc *__must_check devm_gpiod_get(struct device *dev,
{ {
return devm_gpiod_get_index(dev, con_id, 0, flags); return devm_gpiod_get_index(dev, con_id, 0, flags);
} }
EXPORT_SYMBOL(devm_gpiod_get); EXPORT_SYMBOL_GPL(devm_gpiod_get);
/** /**
* devm_gpiod_get_optional - Resource-managed gpiod_get_optional() * devm_gpiod_get_optional - Resource-managed gpiod_get_optional()
...@@ -77,7 +77,7 @@ struct gpio_desc *__must_check devm_gpiod_get_optional(struct device *dev, ...@@ -77,7 +77,7 @@ struct gpio_desc *__must_check devm_gpiod_get_optional(struct device *dev,
{ {
return devm_gpiod_get_index_optional(dev, con_id, 0, flags); return devm_gpiod_get_index_optional(dev, con_id, 0, flags);
} }
EXPORT_SYMBOL(devm_gpiod_get_optional); EXPORT_SYMBOL_GPL(devm_gpiod_get_optional);
/** /**
* devm_gpiod_get_index - Resource-managed gpiod_get_index() * devm_gpiod_get_index - Resource-managed gpiod_get_index()
...@@ -127,7 +127,7 @@ struct gpio_desc *__must_check devm_gpiod_get_index(struct device *dev, ...@@ -127,7 +127,7 @@ struct gpio_desc *__must_check devm_gpiod_get_index(struct device *dev,
return desc; return desc;
} }
EXPORT_SYMBOL(devm_gpiod_get_index); EXPORT_SYMBOL_GPL(devm_gpiod_get_index);
/** /**
* devm_gpiod_get_from_of_node() - obtain a GPIO from an OF node * devm_gpiod_get_from_of_node() - obtain a GPIO from an OF node
...@@ -182,7 +182,7 @@ struct gpio_desc *devm_gpiod_get_from_of_node(struct device *dev, ...@@ -182,7 +182,7 @@ struct gpio_desc *devm_gpiod_get_from_of_node(struct device *dev,
return desc; return desc;
} }
EXPORT_SYMBOL(devm_gpiod_get_from_of_node); EXPORT_SYMBOL_GPL(devm_gpiod_get_from_of_node);
/** /**
* devm_fwnode_get_index_gpiod_from_child - get a GPIO descriptor from a * devm_fwnode_get_index_gpiod_from_child - get a GPIO descriptor from a
...@@ -239,7 +239,7 @@ struct gpio_desc *devm_fwnode_get_index_gpiod_from_child(struct device *dev, ...@@ -239,7 +239,7 @@ struct gpio_desc *devm_fwnode_get_index_gpiod_from_child(struct device *dev,
return desc; return desc;
} }
EXPORT_SYMBOL(devm_fwnode_get_index_gpiod_from_child); EXPORT_SYMBOL_GPL(devm_fwnode_get_index_gpiod_from_child);
/** /**
* devm_gpiod_get_index_optional - Resource-managed gpiod_get_index_optional() * devm_gpiod_get_index_optional - Resource-managed gpiod_get_index_optional()
...@@ -268,7 +268,7 @@ struct gpio_desc *__must_check devm_gpiod_get_index_optional(struct device *dev, ...@@ -268,7 +268,7 @@ struct gpio_desc *__must_check devm_gpiod_get_index_optional(struct device *dev,
return desc; return desc;
} }
EXPORT_SYMBOL(devm_gpiod_get_index_optional); EXPORT_SYMBOL_GPL(devm_gpiod_get_index_optional);
/** /**
* devm_gpiod_get_array - Resource-managed gpiod_get_array() * devm_gpiod_get_array - Resource-managed gpiod_get_array()
...@@ -303,7 +303,7 @@ struct gpio_descs *__must_check devm_gpiod_get_array(struct device *dev, ...@@ -303,7 +303,7 @@ struct gpio_descs *__must_check devm_gpiod_get_array(struct device *dev,
return descs; return descs;
} }
EXPORT_SYMBOL(devm_gpiod_get_array); EXPORT_SYMBOL_GPL(devm_gpiod_get_array);
/** /**
* devm_gpiod_get_array_optional - Resource-managed gpiod_get_array_optional() * devm_gpiod_get_array_optional - Resource-managed gpiod_get_array_optional()
...@@ -328,7 +328,7 @@ devm_gpiod_get_array_optional(struct device *dev, const char *con_id, ...@@ -328,7 +328,7 @@ devm_gpiod_get_array_optional(struct device *dev, const char *con_id,
return descs; return descs;
} }
EXPORT_SYMBOL(devm_gpiod_get_array_optional); EXPORT_SYMBOL_GPL(devm_gpiod_get_array_optional);
/** /**
* devm_gpiod_put - Resource-managed gpiod_put() * devm_gpiod_put - Resource-managed gpiod_put()
...@@ -344,7 +344,7 @@ void devm_gpiod_put(struct device *dev, struct gpio_desc *desc) ...@@ -344,7 +344,7 @@ void devm_gpiod_put(struct device *dev, struct gpio_desc *desc)
WARN_ON(devres_release(dev, devm_gpiod_release, devm_gpiod_match, WARN_ON(devres_release(dev, devm_gpiod_release, devm_gpiod_match,
&desc)); &desc));
} }
EXPORT_SYMBOL(devm_gpiod_put); EXPORT_SYMBOL_GPL(devm_gpiod_put);
/** /**
* devm_gpiod_unhinge - Remove resource management from a gpio descriptor * devm_gpiod_unhinge - Remove resource management from a gpio descriptor
...@@ -374,7 +374,7 @@ void devm_gpiod_unhinge(struct device *dev, struct gpio_desc *desc) ...@@ -374,7 +374,7 @@ void devm_gpiod_unhinge(struct device *dev, struct gpio_desc *desc)
/* Anything else we should warn about */ /* Anything else we should warn about */
WARN_ON(ret); WARN_ON(ret);
} }
EXPORT_SYMBOL(devm_gpiod_unhinge); EXPORT_SYMBOL_GPL(devm_gpiod_unhinge);
/** /**
* devm_gpiod_put_array - Resource-managed gpiod_put_array() * devm_gpiod_put_array - Resource-managed gpiod_put_array()
...@@ -390,7 +390,7 @@ void devm_gpiod_put_array(struct device *dev, struct gpio_descs *descs) ...@@ -390,7 +390,7 @@ void devm_gpiod_put_array(struct device *dev, struct gpio_descs *descs)
WARN_ON(devres_release(dev, devm_gpiod_release_array, WARN_ON(devres_release(dev, devm_gpiod_release_array,
devm_gpiod_match_array, &descs)); devm_gpiod_match_array, &descs));
} }
EXPORT_SYMBOL(devm_gpiod_put_array); EXPORT_SYMBOL_GPL(devm_gpiod_put_array);
...@@ -444,7 +444,7 @@ int devm_gpio_request(struct device *dev, unsigned gpio, const char *label) ...@@ -444,7 +444,7 @@ int devm_gpio_request(struct device *dev, unsigned gpio, const char *label)
return 0; return 0;
} }
EXPORT_SYMBOL(devm_gpio_request); EXPORT_SYMBOL_GPL(devm_gpio_request);
/** /**
* devm_gpio_request_one - request a single GPIO with initial setup * devm_gpio_request_one - request a single GPIO with initial setup
...@@ -474,7 +474,7 @@ int devm_gpio_request_one(struct device *dev, unsigned gpio, ...@@ -474,7 +474,7 @@ int devm_gpio_request_one(struct device *dev, unsigned gpio,
return 0; return 0;
} }
EXPORT_SYMBOL(devm_gpio_request_one); EXPORT_SYMBOL_GPL(devm_gpio_request_one);
/** /**
* devm_gpio_free - free a GPIO * devm_gpio_free - free a GPIO
...@@ -492,4 +492,4 @@ void devm_gpio_free(struct device *dev, unsigned int gpio) ...@@ -492,4 +492,4 @@ void devm_gpio_free(struct device *dev, unsigned int gpio)
WARN_ON(devres_release(dev, devm_gpio_release, devm_gpio_match, WARN_ON(devres_release(dev, devm_gpio_release, devm_gpio_match,
&gpio)); &gpio));
} }
EXPORT_SYMBOL(devm_gpio_free); EXPORT_SYMBOL_GPL(devm_gpio_free);
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment