lkml.org 
[lkml]   [2018]   [Jul]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH v4 6/6] crypto: qcom: Add ACPI support
From
Date
On 7/4/18 6:44 AM, Vinod Koul wrote:
> + if (has_acpi_companion(&pdev->dev)) {
> + rng->skip_init = 1;
> + } else {
> + rng->clk = devm_clk_get(&pdev->dev, "core");
> + if (IS_ERR(rng->clk))
> + return PTR_ERR(rng->clk);
> +
> + rng->skip_init =
> + (unsigned long)of_device_get_match_data(&pdev->dev);
> + }

There is a device_get_match_data() function, if you want to be
consistent between ACPI and DT.

\
 
 \ /
  Last update: 2018-07-04 16:46    [W:1.342 / U:0.236 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site