Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1370812
| Path | csiph.com!goblin3!goblin1!goblin.stu.neva.ru!news.panservice.it!bofh.it!news.nic.it!robomod |
|---|---|
| From | Shubhrajyoti Datta <shubhrajyoti.datta@xilinx.com> |
| Newsgroups | linux.kernel |
| Subject | [PATCH] gpio: zynq: Fix the error path |
| Date | Mon, 04 Apr 2016 20:30:02 +0200 |
| Message-ID | <rkhqa-7no-27@gated-at.bofh.it> (permalink) |
| X-Original-To | <linux-gpio@vger.kernel.org> |
| X-Greylist | delayed 861 seconds by postgrey-1.27 at vger.kernel.org; Mon, 04 Apr 2016 14:28:45 EDT |
| Authentication-Results | spf=pass (sender IP is 149.199.60.83) smtp.mailfrom=xilinx.com; vger.kernel.org; dkim=none (message not signed) header.d=none;vger.kernel.org; dmarc=bestguesspass action=none header.from=xilinx.com; |
| Received-Spf | Pass (protection.outlook.com: domain of xilinx.com designates 149.199.60.83 as permitted sender) receiver=protection.outlook.com; client-ip=149.199.60.83; helo=xsj-pvapsmtpgw01; |
| X-Mailer | git-send-email 2.1.2 |
| X-Rcis-Action | ALLOW |
| X-Tm-As-Product-Ver | IMSS-7.1.0.1224-8.0.0.1202-22238.005 |
| X-Tm-As-User-Approved-Sender | Yes;Yes |
| X-Forefront-Antispam-Report | CIP:149.199.60.83;IPV:NLI;CTRY:US;EFV:NLI;SFV:NSPM;SFS:(10009020)(6009001)(2980300002)(438002)(189002)(199003)(47776003)(6806005)(2906002)(103686003)(110136002)(81166005)(586003)(50986999)(106466001)(63266004)(45336002)(46386002)(52956003)(48376002)(5008740100001)(2351001)(42186005)(36756003)(1096002)(87936001)(1220700001)(4326007)(189998001)(50226001)(19580395003)(19580405001)(4001430100002)(36386004)(33646002)(90966002)(50466002)(229853001)(86362001)(5003940100001)(92566002)(107886002)(11100500001)(107986001);DIR:OUT;SFP:1101;SCL:1;SRVR:CY1NAM02HT042;H:xsj-pvapsmtpgw01;FPR:;SPF:Pass;MLV:sfv;MX:1;A:1;LANG:en; |
| MIME-Version | 1.0 |
| Content-Type | text/plain |
| X-Ms-Office365-Filtering-Correlation-ID | cf284805-7318-4e74-92b4-08d35cb4f267 |
| X-Microsoft-Antispam | UriScan:;BCL:0;PCL:0;RULEID:(8251501002);SRVR:CY1NAM02HT042; |
| X-Microsoft-Antispam-Prvs | <656baaf331cd46e3bc2f2d5d3992a3e5@CY1NAM02HT042.eop-nam02.prod.protection.outlook.com> |
| X-Exchange-Antispam-Report-Test | UriScan:; |
| X-Exchange-Antispam-Report-Cfa-Test | BCL:0;PCL:0;RULEID:(601004)(2401047)(13015025)(13017025)(8121501046)(13018025)(13023025)(13024025)(5005006)(3002001)(10201501046);SRVR:CY1NAM02HT042;BCL:0;PCL:0;RULEID:;SRVR:CY1NAM02HT042; |
| X-Forefront-Prvs | 0902222726 |
| X-Originatororg | xilinx.com |
| X-Ms-Exchange-Crosstenant-Originalarrivaltime | 04 Apr 2016 18:14:20.9489 (UTC) |
| X-Ms-Exchange-Crosstenant-ID | 657af505-d5df-48d0-8300-c31994686c5c |
| X-Ms-Exchange-Crosstenant-Originalattributedtenantconnectingip | TenantId=657af505-d5df-48d0-8300-c31994686c5c;Ip=[149.199.60.83];Helo=[xsj-pvapsmtpgw01] |
| X-Ms-Exchange-Crosstenant-Fromentityheader | HybridOnPrem |
| X-Ms-Exchange-Transport-Crosstenantheadersstamped | CY1NAM02HT042 |
| Sender | robomod@news.nic.it |
| List-ID | <linux-kernel.vger.kernel.org> |
| X-Mailing-List | linux-kernel@vger.kernel.org |
| Approved | robomod@news.nic.it |
| Lines | 33 |
| Organization | linux.* mail to news gateway |
| X-Original-Cc | <linux-kernel@vger.kernel.org>, <linus.walleij@linaro.org>, <gnurou@gmail.com>, <michal.simek@xilinx.com>, <soren.brinkmann@xilinx.com>, Shubhrajyoti Datta <shubhraj@xilinx.com> |
| X-Original-Date | Mon, 4 Apr 2016 23:44:06 +0530 |
| X-Original-Message-ID | <1459793646-16000-1-git-send-email-shubhraj@xilinx.com> |
| X-Original-Sender | linux-kernel-owner@vger.kernel.org |
| Xref | csiph.com linux.kernel:1370812 |
Show key headers only | View raw
pm_runtime_disable is called only in remove it is missed out in the error path. Fix the same. Signed-off-by: Shubhrajyoti Datta <shubhraj@xilinx.com> --- drivers/gpio/gpio-zynq.c | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/drivers/gpio/gpio-zynq.c b/drivers/gpio/gpio-zynq.c index 66d3d24..75c6355 100644 --- a/drivers/gpio/gpio-zynq.c +++ b/drivers/gpio/gpio-zynq.c @@ -713,7 +713,7 @@ static int zynq_gpio_probe(struct platform_device *pdev) pm_runtime_enable(&pdev->dev); ret = pm_runtime_get_sync(&pdev->dev); if (ret < 0) - return ret; + goto err_pm_dis; /* report a bug if gpio chip registration fails */ ret = gpiochip_add_data(chip, gpio); @@ -745,6 +745,8 @@ err_rm_gpiochip: gpiochip_remove(chip); err_pm_put: pm_runtime_put(&pdev->dev); +err_pm_dis: + pm_runtime_disable(&pdev->dev); return ret; } -- 1.7.1
Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread
[PATCH] gpio: zynq: Fix the error path Shubhrajyoti Datta <shubhrajyoti.datta@xilinx.com> - 2016-04-04 20:30 +0200 Re: [PATCH] gpio: zynq: Fix the error path Linus Walleij <linus.walleij@linaro.org> - 2016-04-06 15:50 +0200
csiph-web