Skip to content

Commit cb33532

Browse files
andy-shevlag-linaro
authored andcommitted
leds: Unexport of_led_get()
There are no users outside the module. Signed-off-by: Andy Shevchenko <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Lee Jones <[email protected]>
1 parent c3c38e8 commit cb33532

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

drivers/leds/led-class.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ static const struct class leds_class = {
256256
* Returns the LED device parsed from the phandle specified in the "leds"
257257
* property of a device tree node or a negative error-code on failure.
258258
*/
259-
struct led_classdev *of_led_get(struct device_node *np, int index)
259+
static struct led_classdev *of_led_get(struct device_node *np, int index)
260260
{
261261
struct device *led_dev;
262262
struct device_node *led_node;
@@ -270,7 +270,6 @@ struct led_classdev *of_led_get(struct device_node *np, int index)
270270

271271
return led_module_get(led_dev);
272272
}
273-
EXPORT_SYMBOL_GPL(of_led_get);
274273

275274
/**
276275
* led_put() - release a LED device

include/linux/leds.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,6 @@ void led_remove_lookup(struct led_lookup_data *led_lookup);
294294
struct led_classdev *__must_check led_get(struct device *dev, char *con_id);
295295
struct led_classdev *__must_check devm_led_get(struct device *dev, char *con_id);
296296

297-
extern struct led_classdev *of_led_get(struct device_node *np, int index);
298297
extern void led_put(struct led_classdev *led_cdev);
299298
struct led_classdev *__must_check devm_of_led_get(struct device *dev,
300299
int index);

0 commit comments

Comments
 (0)