.. | .. |
---|
838 | 838 | *arg = (reg & LPC18XX_SCU_PIN_EHD_MASK) >> LPC18XX_SCU_PIN_EHD_POS; |
---|
839 | 839 | switch (*arg) { |
---|
840 | 840 | case 3: *arg += 5; |
---|
| 841 | + fallthrough; |
---|
841 | 842 | case 2: *arg += 5; |
---|
| 843 | + fallthrough; |
---|
842 | 844 | case 1: *arg += 3; |
---|
| 845 | + fallthrough; |
---|
843 | 846 | case 0: *arg += 4; |
---|
844 | 847 | } |
---|
845 | 848 | break; |
---|
.. | .. |
---|
1054 | 1057 | |
---|
1055 | 1058 | switch (param_val) { |
---|
1056 | 1059 | case 20: param_val -= 5; |
---|
| 1060 | + fallthrough; |
---|
1057 | 1061 | case 14: param_val -= 5; |
---|
| 1062 | + fallthrough; |
---|
1058 | 1063 | case 8: param_val -= 3; |
---|
| 1064 | + fallthrough; |
---|
1059 | 1065 | case 4: param_val -= 4; |
---|
1060 | 1066 | break; |
---|
1061 | 1067 | default: |
---|
.. | .. |
---|
1318 | 1324 | static int lpc18xx_scu_probe(struct platform_device *pdev) |
---|
1319 | 1325 | { |
---|
1320 | 1326 | struct lpc18xx_scu_data *scu; |
---|
1321 | | - struct resource *res; |
---|
1322 | 1327 | int ret; |
---|
1323 | 1328 | |
---|
1324 | 1329 | scu = devm_kzalloc(&pdev->dev, sizeof(*scu), GFP_KERNEL); |
---|
1325 | 1330 | if (!scu) |
---|
1326 | 1331 | return -ENOMEM; |
---|
1327 | 1332 | |
---|
1328 | | - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); |
---|
1329 | | - scu->base = devm_ioremap_resource(&pdev->dev, res); |
---|
| 1333 | + scu->base = devm_platform_ioremap_resource(pdev, 0); |
---|
1330 | 1334 | if (IS_ERR(scu->base)) |
---|
1331 | 1335 | return PTR_ERR(scu->base); |
---|
1332 | 1336 | |
---|