lkml.org 
[lkml]   [2016]   [Aug]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: [PATCH 3/3] soc: ti: Add ti_sci_pm_domains driver
+ Jon

[...]

> +
> +static int ti_sci_pm_domains_probe(struct platform_device *pdev)
> +{
> + struct device *dev = &pdev->dev;
> + struct device_node *np = dev->of_node;
> + struct ti_sci_genpd_data *ti_sci_genpd;
> +
> + ti_sci_genpd = devm_kzalloc(dev, sizeof(*ti_sci_genpd), GFP_KERNEL);
> + if (!ti_sci_genpd)
> + return -ENOMEM;
> +
> + ti_sci_genpd->ti_sci = devm_ti_sci_get_handle(dev);
> + if (IS_ERR(ti_sci_genpd->ti_sci))
> + return PTR_ERR(ti_sci_genpd->ti_sci);
> +
> + ti_sci_genpd->dev = dev;
> +
> + INIT_LIST_HEAD(&ti_sci_genpd->pd_list);
> + mutex_init(&ti_sci_genpd->pd_list_mutex);
> +
> + return __of_genpd_add_provider(np, of_ti_sci_genpd_xlate_onecell,
> + ti_sci_genpd);

Jon Hunter are working on adding robust method to be able to remove
initialized genpds [1].

In that series we intend to remove the __of_genpd_add_provider() API,
and instead only have of_genpd_add_provider_onecell() and
of_genpd_add_provider_simple(). Could you please convert to use any of
these APIs instead?

Kind regards
Uffe

[1]
http://www.spinics.net/lists/arm-kernel/msg524151.html

\
 
 \ /
  Last update: 2016-09-17 09:57    [W:0.099 / U:0.108 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site