pinctrl-mxs.c (4ba24fef3eb3b142197135223b90ced2f319cd53) | pinctrl-mxs.c (323de9efdf3e75d1dfb48003a52e59d6d9d4c7a5) |
---|---|
1/* 2 * Copyright 2012 Freescale Semiconductor, Inc. 3 * 4 * The code contained herein is licensed under the GNU General Public 5 * License. You may obtain a copy of the GNU General Public License 6 * Version 2 or later at the following locations: 7 * 8 * http://www.opensource.org/licenses/gpl-license.html --- 526 unchanged lines hidden (view full) --- 535 536 ret = mxs_pinctrl_probe_dt(pdev, d); 537 if (ret) { 538 dev_err(&pdev->dev, "dt probe failed: %d\n", ret); 539 goto err; 540 } 541 542 d->pctl = pinctrl_register(&mxs_pinctrl_desc, &pdev->dev, d); | 1/* 2 * Copyright 2012 Freescale Semiconductor, Inc. 3 * 4 * The code contained herein is licensed under the GNU General Public 5 * License. You may obtain a copy of the GNU General Public License 6 * Version 2 or later at the following locations: 7 * 8 * http://www.opensource.org/licenses/gpl-license.html --- 526 unchanged lines hidden (view full) --- 535 536 ret = mxs_pinctrl_probe_dt(pdev, d); 537 if (ret) { 538 dev_err(&pdev->dev, "dt probe failed: %d\n", ret); 539 goto err; 540 } 541 542 d->pctl = pinctrl_register(&mxs_pinctrl_desc, &pdev->dev, d); |
543 if (!d->pctl) { | 543 if (IS_ERR(d->pctl)) { |
544 dev_err(&pdev->dev, "Couldn't register MXS pinctrl driver\n"); | 544 dev_err(&pdev->dev, "Couldn't register MXS pinctrl driver\n"); |
545 ret = -EINVAL; | 545 ret = PTR_ERR(d->pctl); |
546 goto err; 547 } 548 549 return 0; 550 551err: 552 iounmap(d->base); 553 return ret; --- 13 unchanged lines hidden --- | 546 goto err; 547 } 548 549 return 0; 550 551err: 552 iounmap(d->base); 553 return ret; --- 13 unchanged lines hidden --- |