[PATCH] clk: uclass: clk_get_by_name() must not be available if CONFIG_OF_PLATDATA is enabled
Giulio Benetti
giulio.benetti at benettiengineering.com
Fri Dec 13 00:02:25 CET 2019
Hi Lukasz,
On 12/12/19 11:53 PM, Giulio Benetti wrote:
> clk_get_by_name() requires clk_get_by_id() that is not available if
> CONFIG_OF_PLATDATA is defined, so move clk_get_by_name() into #else
> condition of #if CONFIG_IS_ENABLED(OF_PLATDATA).
>
> Signed-off-by: Giulio Benetti <giulio.benetti at benettiengineering.com>
I've already successfully executed a complete Travis with master and
this patch applied:
https://travis-ci.org/giuliobenetti/u-boot-imxrt/builds/624256888
Kind regards
--
Giulio Benetti
Benetti Engineering sas
> ---
> drivers/clk/clk-uclass.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/clk/clk-uclass.c b/drivers/clk/clk-uclass.c
> index 9aa8537004..170e19db65 100644
> --- a/drivers/clk/clk-uclass.c
> +++ b/drivers/clk/clk-uclass.c
> @@ -326,7 +326,6 @@ int clk_set_defaults(struct udevice *dev, int stage)
>
> return 0;
> }
> -# endif /* OF_PLATDATA */
>
> int clk_get_by_name(struct udevice *dev, const char *name, struct clk *clk)
> {
> @@ -343,6 +342,7 @@ int clk_get_by_name(struct udevice *dev, const char *name, struct clk *clk)
>
> return clk_get_by_index(dev, index, clk);
> }
> +# endif /* OF_PLATDATA */
>
> int clk_release_all(struct clk *clk, int count)
> {
>
More information about the U-Boot
mailing list