From: Pramod Gurav Date: Tue, 9 Sep 2014 10:20:37 +0000 (+0530) Subject: pinctrl: at91: Fix error handling while doing gpiochio_irqchip_add X-Git-Tag: fixes-for-v3.18-merge-window~33^2~13 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=834e1678649db1e064ee397cca161a65bacfa801;p=pandora-kernel.git pinctrl: at91: Fix error handling while doing gpiochio_irqchip_add This patch removes a call to panic function when gpiochio_irqchip_add fails and just returns the error to the calling function. Same return value is used to handle the error case and adds a lable to release resources on error. The error message has been improved to indicate failure to add irqchip to gpiochip. This also changes first argument to function at91_gpio_of_irq_setup from struct device_node to struct platform_device. Because The device_node argument was anyway not being used. Passed pdev so that on failure dev_err can use &pdev->dev and log can be associated with proper device. CC: Jean-Christophe Plagniol-Villard CC: Linus Walleij Signed-off-by: Pramod Gurav Signed-off-by: Linus Walleij --- Reading git-diff-tree failed