gpio-altera.c (c5abbba932a4afd82cb35f3d6e691a2b4a0613be) | gpio-altera.c (c4b40493de668a86856602a4cf19bf0d809e2681) |
---|---|
1/* 2 * Copyright (C) 2013 Altera Corporation 3 * Based on gpio-mpc8xxx.c 4 * 5 * This program is free software; you can redistribute it and/or modify 6 * it under the terms of the GNU General Public License as published by 7 * the Free Software Foundation; either version 2 of the License, or 8 * (at your option) any later version. --- 242 unchanged lines hidden (view full) --- 251 status &= readl(mm_gc->regs + ALTERA_GPIO_IRQ_MASK); 252 253 for_each_set_bit(i, &status, mm_gc->gc.ngpio) { 254 generic_handle_irq(irq_find_mapping(irqdomain, i)); 255 } 256 chained_irq_exit(chip, desc); 257} 258 | 1/* 2 * Copyright (C) 2013 Altera Corporation 3 * Based on gpio-mpc8xxx.c 4 * 5 * This program is free software; you can redistribute it and/or modify 6 * it under the terms of the GNU General Public License as published by 7 * the Free Software Foundation; either version 2 of the License, or 8 * (at your option) any later version. --- 242 unchanged lines hidden (view full) --- 251 status &= readl(mm_gc->regs + ALTERA_GPIO_IRQ_MASK); 252 253 for_each_set_bit(i, &status, mm_gc->gc.ngpio) { 254 generic_handle_irq(irq_find_mapping(irqdomain, i)); 255 } 256 chained_irq_exit(chip, desc); 257} 258 |
259int altera_gpio_probe(struct platform_device *pdev) | 259static int altera_gpio_probe(struct platform_device *pdev) |
260{ 261 struct device_node *node = pdev->dev.of_node; 262 int reg, ret; 263 struct altera_gpio_chip *altera_gc; 264 265 altera_gc = devm_kzalloc(&pdev->dev, sizeof(*altera_gc), GFP_KERNEL); 266 if (!altera_gc) 267 return -ENOMEM; --- 107 unchanged lines hidden --- | 260{ 261 struct device_node *node = pdev->dev.of_node; 262 int reg, ret; 263 struct altera_gpio_chip *altera_gc; 264 265 altera_gc = devm_kzalloc(&pdev->dev, sizeof(*altera_gc), GFP_KERNEL); 266 if (!altera_gc) 267 return -ENOMEM; --- 107 unchanged lines hidden --- |