Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1321849 > unrolled thread

Re: [PATCH 03/15] mips: use of_platform_default_populate() to populate default bus

Started byJoshua Henderson <joshua.henderson@microchip.com>
First post2016-01-29 17:00 +0100
Last post2016-01-30 04:00 +0100
Articles 2 — 2 participants

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: [PATCH 03/15] mips: use of_platform_default_populate() to  populate default bus Joshua Henderson <joshua.henderson@microchip.com> - 2016-01-29 17:00 +0100
    Re: [PATCH 03/15] mips: use of_platform_default_populate() to  populate default bus Kefeng Wang <wangkefeng.wang@huawei.com> - 2016-01-30 04:00 +0100

#1321849 — Re: [PATCH 03/15] mips: use of_platform_default_populate() to populate default bus

FromJoshua Henderson <joshua.henderson@microchip.com>
Date2016-01-29 17:00 +0100
SubjectRe: [PATCH 03/15] mips: use of_platform_default_populate() to populate default bus
Message-ID<qWjCO-5kt-33@gated-at.bofh.it>
On 01/26/2016 09:27 PM, Kefeng Wang wrote:
> Use helper of_platform_default_populate() in linux/of_platform
> when possible, instead of calling of_platform_populate() with
> the default match table.
> 
> Cc: Ralf Baechle <ralf@linux-mips.org>
> Signed-off-by: Kefeng Wang <wangkefeng.wang@huawei.com>
> ---
>  arch/mips/ath79/setup.c           | 2 +-
>  arch/mips/jz4740/setup.c          | 2 +-
>  arch/mips/mti-sead3/sead3-setup.c | 2 +-
>  arch/mips/pic32/pic32mzda/init.c  | 3 +--
>  arch/mips/pistachio/init.c        | 2 +-
>  arch/mips/xilfpga/init.c          | 2 +-
>  6 files changed, 6 insertions(+), 7 deletions(-)
> 

[...]

> diff --git a/arch/mips/pic32/pic32mzda/init.c b/arch/mips/pic32/pic32mzda/init.c
> index 775ff90..77ecf32 100644
> --- a/arch/mips/pic32/pic32mzda/init.c
> +++ b/arch/mips/pic32/pic32mzda/init.c
> @@ -147,8 +147,7 @@ static int __init plat_of_setup(void)
>  		panic("Device tree not present");
>  
>  	pic32_of_prepare_platform_data(pic32_auxdata_lookup);
> -	if (of_platform_populate(NULL, of_default_bus_match_table,
> -				 pic32_auxdata_lookup, NULL))
> +	if (of_platform_default_populate(NULL, pic32_auxdata_lookup, NULL))
>  		panic("Failed to populate DT");
>  
>  	return 0;

I'll one-up just compile-testing for this.

Tested-by: Joshua Henderson <joshua.henderson@microchip.com>

[...]

[toc] | [next] | [standalone]


#1322238

FromKefeng Wang <wangkefeng.wang@huawei.com>
Date2016-01-30 04:00 +0100
Message-ID<qWtVw-4mu-7@gated-at.bofh.it>
In reply to#1321849

On 2016/1/30 0:00, Joshua Henderson wrote:
> On 01/26/2016 09:27 PM, Kefeng Wang wrote:
>> Use helper of_platform_default_populate() in linux/of_platform
>> when possible, instead of calling of_platform_populate() with
>> the default match table.
>>
>> Cc: Ralf Baechle <ralf@linux-mips.org>
>> Signed-off-by: Kefeng Wang <wangkefeng.wang@huawei.com>
>> ---
>>  arch/mips/ath79/setup.c           | 2 +-
>>  arch/mips/jz4740/setup.c          | 2 +-
>>  arch/mips/mti-sead3/sead3-setup.c | 2 +-
>>  arch/mips/pic32/pic32mzda/init.c  | 3 +--
>>  arch/mips/pistachio/init.c        | 2 +-
>>  arch/mips/xilfpga/init.c          | 2 +-
>>  6 files changed, 6 insertions(+), 7 deletions(-)
>>
> 
> [...]
> 
>> diff --git a/arch/mips/pic32/pic32mzda/init.c b/arch/mips/pic32/pic32mzda/init.c
>> index 775ff90..77ecf32 100644
>> --- a/arch/mips/pic32/pic32mzda/init.c
>> +++ b/arch/mips/pic32/pic32mzda/init.c
>> @@ -147,8 +147,7 @@ static int __init plat_of_setup(void)
>>  		panic("Device tree not present");
>>  
>>  	pic32_of_prepare_platform_data(pic32_auxdata_lookup);
>> -	if (of_platform_populate(NULL, of_default_bus_match_table,
>> -				 pic32_auxdata_lookup, NULL))
>> +	if (of_platform_default_populate(NULL, pic32_auxdata_lookup, NULL))
>>  		panic("Failed to populate DT");
>>  
>>  	return 0;
> 
> I'll one-up just compile-testing for this.

Hi Joshua, Many thanks.

> 
> Tested-by: Joshua Henderson <joshua.henderson@microchip.com>
> 
> [...]
> 
> 
> .
> 

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web