| .. | .. |
|---|
| 189 | 189 | init.num_parents = of_clk_get_parent_count(node); |
|---|
| 190 | 190 | |
|---|
| 191 | 191 | if (init.num_parents != 1) { |
|---|
| 192 | | - pr_err("%s: atl clock %s must have 1 parent\n", __func__, |
|---|
| 193 | | - node->name); |
|---|
| 192 | + pr_err("%s: atl clock %pOFn must have 1 parent\n", __func__, |
|---|
| 193 | + node); |
|---|
| 194 | 194 | goto cleanup; |
|---|
| 195 | 195 | } |
|---|
| 196 | 196 | |
|---|
| .. | .. |
|---|
| 233 | 233 | cinfo->iobase = of_iomap(node, 0); |
|---|
| 234 | 234 | cinfo->dev = &pdev->dev; |
|---|
| 235 | 235 | pm_runtime_enable(cinfo->dev); |
|---|
| 236 | | - pm_runtime_irq_safe(cinfo->dev); |
|---|
| 237 | 236 | |
|---|
| 238 | 237 | pm_runtime_get_sync(cinfo->dev); |
|---|
| 239 | 238 | atl_write(cinfo, DRA7_ATL_PCLKMUX_REG(0), DRA7_ATL_PCLKMUX); |
|---|
| .. | .. |
|---|
| 252 | 251 | if (rc) { |
|---|
| 253 | 252 | pr_err("%s: failed to lookup atl clock %d\n", __func__, |
|---|
| 254 | 253 | i); |
|---|
| 255 | | - return -EINVAL; |
|---|
| 254 | + ret = -EINVAL; |
|---|
| 255 | + goto pm_put; |
|---|
| 256 | 256 | } |
|---|
| 257 | 257 | |
|---|
| 258 | 258 | clk = of_clk_get_from_provider(&clkspec); |
|---|
| 259 | 259 | if (IS_ERR(clk)) { |
|---|
| 260 | 260 | pr_err("%s: failed to get atl clock %d from provider\n", |
|---|
| 261 | 261 | __func__, i); |
|---|
| 262 | | - return PTR_ERR(clk); |
|---|
| 262 | + ret = PTR_ERR(clk); |
|---|
| 263 | + goto pm_put; |
|---|
| 263 | 264 | } |
|---|
| 264 | 265 | |
|---|
| 265 | 266 | cdesc = to_atl_desc(__clk_get_hw(clk)); |
|---|
| .. | .. |
|---|
| 292 | 293 | if (cdesc->enabled) |
|---|
| 293 | 294 | atl_clk_enable(__clk_get_hw(clk)); |
|---|
| 294 | 295 | } |
|---|
| 295 | | - pm_runtime_put_sync(cinfo->dev); |
|---|
| 296 | 296 | |
|---|
| 297 | +pm_put: |
|---|
| 298 | + pm_runtime_put_sync(cinfo->dev); |
|---|
| 297 | 299 | return ret; |
|---|
| 298 | 300 | } |
|---|
| 299 | 301 | |
|---|