diff options
Diffstat (limited to 'drivers/gpio/gpio-mvebu.c')
| -rw-r--r-- | drivers/gpio/gpio-mvebu.c | 13 | 
1 files changed, 7 insertions, 6 deletions
| diff --git a/drivers/gpio/gpio-mvebu.c b/drivers/gpio/gpio-mvebu.c index be65c0451ad5..d767b534c4af 100644 --- a/drivers/gpio/gpio-mvebu.c +++ b/drivers/gpio/gpio-mvebu.c @@ -168,12 +168,12 @@ static void __iomem *mvebu_gpioreg_level_mask(struct mvebu_gpio_chip *mvchip)   * Functions implementing the gpio_chip methods   */ -int mvebu_gpio_request(struct gpio_chip *chip, unsigned pin) +static int mvebu_gpio_request(struct gpio_chip *chip, unsigned pin)  {  	return pinctrl_request_gpio(chip->base + pin);  } -void mvebu_gpio_free(struct gpio_chip *chip, unsigned pin) +static void mvebu_gpio_free(struct gpio_chip *chip, unsigned pin)  {  	pinctrl_free_gpio(chip->base + pin);  } @@ -482,7 +482,7 @@ static struct platform_device_id mvebu_gpio_ids[] = {  };  MODULE_DEVICE_TABLE(platform, mvebu_gpio_ids); -static struct of_device_id mvebu_gpio_of_match[] __devinitdata = { +static struct of_device_id mvebu_gpio_of_match[] = {  	{  		.compatible = "marvell,orion-gpio",  		.data       = (void*) MVEBU_GPIO_SOC_VARIANT_ORION, @@ -501,7 +501,7 @@ static struct of_device_id mvebu_gpio_of_match[] __devinitdata = {  };  MODULE_DEVICE_TABLE(of, mvebu_gpio_of_match); -static int __devinit mvebu_gpio_probe(struct platform_device *pdev) +static int mvebu_gpio_probe(struct platform_device *pdev)  {  	struct mvebu_gpio_chip *mvchip;  	const struct of_device_id *match; @@ -546,6 +546,7 @@ static int __devinit mvebu_gpio_probe(struct platform_device *pdev)  	mvchip->chip.label = dev_name(&pdev->dev);  	mvchip->chip.dev = &pdev->dev;  	mvchip->chip.request = mvebu_gpio_request; +	mvchip->chip.free = mvebu_gpio_free;  	mvchip->chip.direction_input = mvebu_gpio_direction_input;  	mvchip->chip.get = mvebu_gpio_get;  	mvchip->chip.direction_output = mvebu_gpio_direction_output; @@ -673,8 +674,8 @@ static int __devinit mvebu_gpio_probe(struct platform_device *pdev)  			       IRQ_NOREQUEST, IRQ_LEVEL | IRQ_NOPROBE);  	/* Setup irq domain on top of the generic chip. */ -	mvchip->domain = irq_domain_add_legacy(np, mvchip->chip.ngpio, -					       mvchip->irqbase, 0, +	mvchip->domain = irq_domain_add_simple(np, mvchip->chip.ngpio, +					       mvchip->irqbase,  					       &irq_domain_simple_ops,  					       mvchip);  	if (!mvchip->domain) { |