[PATCH] Consolidate the clkdev header files

Kyungmin Park kmpark at infradead.org
Tue Jun 7 04:46:46 EDT 2011


Hi Russell,

Any comments on this patch?

Thank you,
Kyungmin Park

On Wed, Jun 1, 2011 at 1:40 AM, H Hartley Sweeten
<hartleys at visionengravers.com> wrote:
> On Sunday, May 29, 2011 6:04 PM, Kyungmin Park wrote:
>> From: Kyungmin Park <kyungmin.park at samsung.com>
>>
>> Now most of ARM machines has the alsmot same __clk_get/put() macro
>>
>> So place it at the arch/arm/include/asm/clkdev.h and remove the reduntant header files
>>
>> But some machines don't have the same form as above. It can use the machince specific clkdev file by HAVE_MACH_CLKDEV config
>>
>> Now there are only 3 caese.
>>
>> 1) define the clk structure with clkdev macro => Need to move clk structure to proper header file
>>
>> arch/arm/mach-versatile/include/mach/clkdev.h
>> arch/arm/mach-realview/include/mach/clkdev.h
>> arch/arm/mach-vexpress/include/mach/clkdev.h
>> arch/arm/mach-integrator/include/mach/clkdev.h
>>
>> 2) export the __clk_get/put function at clock.c
>>
>> arch/arm/mach-shmobile/include/mach/clkdev.h
>>
>> 3) demuxing the clk source
>> arch/arm/mach-u300/include/mach/clkdev.h
>>
>> Signed-off-by: Kyungmin Park <kyungmin.park at samsung.com>
>> ---
>>  arch/arm/Kconfig                             |    6 ++++
>>  arch/arm/include/asm/clkdev.h                |    5 ++++
>
>>  arch/arm/mach-ep93xx/include/mach/clkdev.h   |   11 --------
>
> Acked-by: H Hartley Sweeten <hsweeten at visionengravers.com>
>



More information about the linux-arm-kernel mailing list