pinctrl-bcm281xx.c (6724af486903df57338c14424e02599e371cf563) | pinctrl-bcm281xx.c (323de9efdf3e75d1dfb48003a52e59d6d9d4c7a5) |
---|---|
1/* 2 * Copyright (C) 2013 Broadcom Corporation 3 * 4 * This program is free software; you can redistribute it and/or 5 * modify it under the terms of the GNU General Public License as 6 * published by the Free Software Foundation version 2. 7 * 8 * This program is distributed "as is" WITHOUT ANY WARRANTY of any --- 1411 unchanged lines hidden (view full) --- 1420 1421 bcm281xx_pinctrl_desc.name = dev_name(&pdev->dev); 1422 bcm281xx_pinctrl_desc.pins = bcm281xx_pinctrl.pins; 1423 bcm281xx_pinctrl_desc.npins = bcm281xx_pinctrl.npins; 1424 1425 pctl = pinctrl_register(&bcm281xx_pinctrl_desc, 1426 &pdev->dev, 1427 pdata); | 1/* 2 * Copyright (C) 2013 Broadcom Corporation 3 * 4 * This program is free software; you can redistribute it and/or 5 * modify it under the terms of the GNU General Public License as 6 * published by the Free Software Foundation version 2. 7 * 8 * This program is distributed "as is" WITHOUT ANY WARRANTY of any --- 1411 unchanged lines hidden (view full) --- 1420 1421 bcm281xx_pinctrl_desc.name = dev_name(&pdev->dev); 1422 bcm281xx_pinctrl_desc.pins = bcm281xx_pinctrl.pins; 1423 bcm281xx_pinctrl_desc.npins = bcm281xx_pinctrl.npins; 1424 1425 pctl = pinctrl_register(&bcm281xx_pinctrl_desc, 1426 &pdev->dev, 1427 pdata); |
1428 if (!pctl) { | 1428 if (IS_ERR(pctl)) { |
1429 dev_err(&pdev->dev, "Failed to register pinctrl\n"); | 1429 dev_err(&pdev->dev, "Failed to register pinctrl\n"); |
1430 return -ENODEV; | 1430 return PTR_ERR(pctl); |
1431 } 1432 1433 platform_set_drvdata(pdev, pdata); 1434 1435 return 0; 1436} 1437 1438static const struct of_device_id bcm281xx_pinctrl_of_match[] = { --- 17 unchanged lines hidden --- | 1431 } 1432 1433 platform_set_drvdata(pdev, pdata); 1434 1435 return 0; 1436} 1437 1438static const struct of_device_id bcm281xx_pinctrl_of_match[] = { --- 17 unchanged lines hidden --- |