Commit 80c0b155 authored by Krzysztof Kozlowski's avatar Krzysztof Kozlowski
Browse files

ARM: s3c: remove plat-samsung/.../samsung-time.h



Remove the arch/arm/plat-samsung/include/plat/samsung-time.h header and
move the contents to common.h headers in mach-s3c24xx and mach-s3c64xx.
The definition of declared functions is already in common.c in mach
directories, so it is logically to put declaration next to them.

This is also one step further towards removal of plat-samsung directory
and it fixes W=1 build warnings:

    arch/arm/mach-s3c64xx/common.c:174:13: warning: no previous prototype for 'samsung_set_timer_source' [-Wmissing-prototypes]
    arch/arm/mach-s3c64xx/common.c:180:13: warning: no previous prototype for 'samsung_timer_init' [-Wmissing-prototypes]

Signed-off-by: default avatarKrzysztof Kozlowski <krzk@kernel.org>
Reviewed-by: default avatarTomasz Figa <tomasz.figa@gmail.com>
parent 16b17fcf
Loading
Loading
Loading
Loading
+12 −0
Original line number Diff line number Diff line
@@ -108,4 +108,16 @@ extern struct platform_device s3c2443_device_dma;

extern struct platform_device s3c2410_device_dclk;

enum samsung_timer_mode {
	SAMSUNG_PWM0,
	SAMSUNG_PWM1,
	SAMSUNG_PWM2,
	SAMSUNG_PWM3,
	SAMSUNG_PWM4,
};

extern void __init samsung_set_timer_source(enum samsung_timer_mode event,
					    enum samsung_timer_mode source);
extern void __init samsung_timer_init(void);

#endif /* __ARCH_ARM_MACH_S3C24XX_COMMON_H */
+0 −2
Original line number Diff line number Diff line
@@ -45,8 +45,6 @@
#include <linux/mtd/map.h>
#include <linux/mtd/physmap.h>

#include <plat/samsung-time.h>

#include "common.h"

static struct resource amlm5900_nor_resource =
+0 −1
Original line number Diff line number Diff line
@@ -44,7 +44,6 @@
#include <plat/devs.h>
#include <plat/cpu.h>
#include <linux/platform_data/asoc-s3c24xx_simtec.h>
#include <plat/samsung-time.h>

#include "anubis.h"
#include "common.h"
+0 −1
Original line number Diff line number Diff line
@@ -43,7 +43,6 @@
#include <plat/devs.h>
#include <plat/cpu.h>
#include <linux/platform_data/mmc-s3cmci.h>
#include <plat/samsung-time.h>

#include "common.h"

+0 −1
Original line number Diff line number Diff line
@@ -50,7 +50,6 @@
#include <plat/cpu-freq.h>
#include <plat/devs.h>
#include <plat/gpio-cfg.h>
#include <plat/samsung-time.h>

#include "bast.h"
#include "common.h"
Loading