.. | .. |
---|
59 | 59 | #define BCM281XX_HDMI_PIN_REG_MODE_MASK 0x0010 |
---|
60 | 60 | #define BCM281XX_HDMI_PIN_REG_MODE_SHIFT 4 |
---|
61 | 61 | |
---|
62 | | -/** |
---|
| 62 | +/* |
---|
63 | 63 | * bcm281xx_pin_type - types of pin register |
---|
64 | 64 | */ |
---|
65 | 65 | enum bcm281xx_pin_type { |
---|
.. | .. |
---|
73 | 73 | static enum bcm281xx_pin_type i2c_pin = BCM281XX_PIN_TYPE_I2C; |
---|
74 | 74 | static enum bcm281xx_pin_type hdmi_pin = BCM281XX_PIN_TYPE_HDMI; |
---|
75 | 75 | |
---|
76 | | -/** |
---|
| 76 | +/* |
---|
77 | 77 | * bcm281xx_pin_function- define pin function |
---|
78 | 78 | */ |
---|
79 | 79 | struct bcm281xx_pin_function { |
---|
.. | .. |
---|
82 | 82 | const unsigned ngroups; |
---|
83 | 83 | }; |
---|
84 | 84 | |
---|
85 | | -/** |
---|
| 85 | +/* |
---|
86 | 86 | * bcm281xx_pinctrl_data - Broadcom-specific pinctrl data |
---|
87 | 87 | * @reg_base - base of pinctrl registers |
---|
88 | 88 | */ |
---|
.. | .. |
---|
1400 | 1400 | static int __init bcm281xx_pinctrl_probe(struct platform_device *pdev) |
---|
1401 | 1401 | { |
---|
1402 | 1402 | struct bcm281xx_pinctrl_data *pdata = &bcm281xx_pinctrl; |
---|
1403 | | - struct resource *res; |
---|
1404 | 1403 | struct pinctrl_dev *pctl; |
---|
1405 | 1404 | |
---|
1406 | 1405 | /* So far We can assume there is only 1 bank of registers */ |
---|
1407 | | - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); |
---|
1408 | | - pdata->reg_base = devm_ioremap_resource(&pdev->dev, res); |
---|
| 1406 | + pdata->reg_base = devm_platform_ioremap_resource(pdev, 0); |
---|
1409 | 1407 | if (IS_ERR(pdata->reg_base)) { |
---|
1410 | 1408 | dev_err(&pdev->dev, "Failed to ioremap MEM resource\n"); |
---|
1411 | | - return -ENODEV; |
---|
| 1409 | + return PTR_ERR(pdata->reg_base); |
---|
1412 | 1410 | } |
---|
1413 | 1411 | |
---|
1414 | 1412 | /* Initialize the dynamic part of pinctrl_desc */ |
---|