sor.c (016a48b3d66e94c99253b79ca16ac656a9de5740) | sor.c (180b46ecdc9f7762aba65c0b029f59c7a6b314fd) |
---|---|
1/* 2 * Copyright (C) 2013 NVIDIA Corporation 3 * 4 * This program is free software; you can redistribute it and/or modify 5 * it under the terms of the GNU General Public License version 2 as 6 * published by the Free Software Foundation. 7 */ 8 --- 3326 unchanged lines hidden (view full) --- 3335 3336 err = devm_request_irq(sor->dev, sor->irq, tegra_sor_irq, 0, 3337 dev_name(sor->dev), sor); 3338 if (err < 0) { 3339 dev_err(&pdev->dev, "failed to request IRQ: %d\n", err); 3340 goto remove; 3341 } 3342 | 1/* 2 * Copyright (C) 2013 NVIDIA Corporation 3 * 4 * This program is free software; you can redistribute it and/or modify 5 * it under the terms of the GNU General Public License version 2 as 6 * published by the Free Software Foundation. 7 */ 8 --- 3326 unchanged lines hidden (view full) --- 3335 3336 err = devm_request_irq(sor->dev, sor->irq, tegra_sor_irq, 0, 3337 dev_name(sor->dev), sor); 3338 if (err < 0) { 3339 dev_err(&pdev->dev, "failed to request IRQ: %d\n", err); 3340 goto remove; 3341 } 3342 |
3343 if (!pdev->dev.pm_domain) { 3344 sor->rst = devm_reset_control_get(&pdev->dev, "sor"); 3345 if (IS_ERR(sor->rst)) { 3346 err = PTR_ERR(sor->rst); | 3343 sor->rst = devm_reset_control_get(&pdev->dev, "sor"); 3344 if (IS_ERR(sor->rst)) { 3345 err = PTR_ERR(sor->rst); 3346 3347 if (err != -EBUSY || WARN_ON(!pdev->dev.pm_domain)) { |
3347 dev_err(&pdev->dev, "failed to get reset control: %d\n", 3348 err); 3349 goto remove; 3350 } | 3348 dev_err(&pdev->dev, "failed to get reset control: %d\n", 3349 err); 3350 goto remove; 3351 } |
3352 3353 /* 3354 * At this point, the reset control is most likely being used 3355 * by the generic power domain implementation. With any luck 3356 * the power domain will have taken care of resetting the SOR 3357 * and we don't have to do anything. 3358 */ 3359 sor->rst = NULL; |
|
3351 } 3352 3353 sor->clk = devm_clk_get(&pdev->dev, NULL); 3354 if (IS_ERR(sor->clk)) { 3355 err = PTR_ERR(sor->clk); 3356 dev_err(&pdev->dev, "failed to get module clock: %d\n", err); 3357 goto remove; 3358 } --- 211 unchanged lines hidden --- | 3360 } 3361 3362 sor->clk = devm_clk_get(&pdev->dev, NULL); 3363 if (IS_ERR(sor->clk)) { 3364 err = PTR_ERR(sor->clk); 3365 dev_err(&pdev->dev, "failed to get module clock: %d\n", err); 3366 goto remove; 3367 } --- 211 unchanged lines hidden --- |