You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
leds: remove use of __devinit
CONFIG_HOTPLUG is going away as an option so __devinit is no longer needed. Signed-off-by: Bill Pemberton <wfp5p@virginia.edu> Cc: Richard Purdie <rpurdie@rpsys.net> Cc: Jan-Simon Moeller <jansimon.moeller@gmx.de> Acked-by: Bryan Wu <cooloney@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
df07cf8126
commit
98ea1ea20c
@@ -91,7 +91,7 @@ static int gpio_blink_set(struct led_classdev *led_cdev,
|
||||
delay_on, delay_off);
|
||||
}
|
||||
|
||||
static int __devinit create_gpio_led(const struct gpio_led *template,
|
||||
static int create_gpio_led(const struct gpio_led *template,
|
||||
struct gpio_led_data *led_dat, struct device *parent,
|
||||
int (*blink_set)(unsigned, int, unsigned long *, unsigned long *))
|
||||
{
|
||||
@@ -167,7 +167,7 @@ static inline int sizeof_gpio_leds_priv(int num_leds)
|
||||
|
||||
/* Code to create from OpenFirmware platform devices */
|
||||
#ifdef CONFIG_OF_GPIO
|
||||
static struct gpio_leds_priv * __devinit gpio_leds_create_of(struct platform_device *pdev)
|
||||
static struct gpio_leds_priv *gpio_leds_create_of(struct platform_device *pdev)
|
||||
{
|
||||
struct device_node *np = pdev->dev.of_node, *child;
|
||||
struct gpio_leds_priv *priv;
|
||||
@@ -224,14 +224,14 @@ static const struct of_device_id of_gpio_leds_match[] = {
|
||||
{},
|
||||
};
|
||||
#else /* CONFIG_OF_GPIO */
|
||||
static struct gpio_leds_priv * __devinit gpio_leds_create_of(struct platform_device *pdev)
|
||||
static struct gpio_leds_priv *gpio_leds_create_of(struct platform_device *pdev)
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
#endif /* CONFIG_OF_GPIO */
|
||||
|
||||
|
||||
static int __devinit gpio_led_probe(struct platform_device *pdev)
|
||||
static int gpio_led_probe(struct platform_device *pdev)
|
||||
{
|
||||
struct gpio_led_platform_data *pdata = pdev->dev.platform_data;
|
||||
struct gpio_leds_priv *priv;
|
||||
|
||||
Reference in New Issue
Block a user