]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ENGR00176812-3 i.mx6: sabreauto: move some declarations to common.h
authorJason Liu <r64343@freescale.com>
Thu, 8 Mar 2012 09:22:51 +0000 (17:22 +0800)
committerOliver Wendt <ow@karo-electronics.de>
Mon, 30 Sep 2013 12:11:13 +0000 (14:11 +0200)
Need move some declarations to common.h to avoid each user
individully declare it in their own .c file. This can make
the code clean and also avoid the duplication.

Signed-off-by: Jason Liu <r64343@freescale.com>
arch/arm/mach-mx6/board-mx6q_sabreauto.c
arch/arm/plat-mxc/include/mach/common.h

index 427b82ab7299cfd060237126f1cea57e43e3c810..fe5ec44379ba12211bb2bdeccd910e37f1daf4e3 100644 (file)
 #define SABREAUTO_USB_HOST1_PWR                SABREAUTO_IO_EXP_GPIO2(7)
 #define SABREAUTO_USB_OTG_PWR          SABREAUTO_IO_EXP_GPIO3(2)
 
-void __init early_console_setup(unsigned long base, struct clk *clk);
 static struct clk *sata_clk;
 static int mipi_sensor;
 static int uart2_en;
 static int can0_enable;
 
-extern struct regulator *(*get_cpu_regulator)(void);
-extern void (*put_cpu_regulator)(void);
-extern char *gp_reg_id;
-extern void mx6_cpu_regulator_init(void);
-extern int __init mx6q_sabreauto_init_pfuze100(u32 int_gpio);
-
 static iomux_v3_cfg_t mx6q_sabreauto_pads[] = {
 
        /* UART4 for debug */
index 62489695af0f2bc86abe2025e2a32abeb03d3d61..b2cacfbf2e953d77f8e4dceaa252821867b9ae2c 100755 (executable)
@@ -23,6 +23,7 @@ struct fec_platform_data;
 struct platform_device;
 struct clk;
 
+extern char *gp_reg_id;
 extern void mx1_map_io(void);
 extern void mx21_map_io(void);
 extern void mx25_map_io(void);
@@ -88,4 +89,7 @@ extern int mx50_revision(void);
 extern int mx53_display_revision(void);
 extern unsigned long mx6_timer_rate(void);
 extern int mxs_reset_block(void __iomem *);
+extern void early_console_setup(unsigned long base, struct clk *clk);
+extern void mx6_cpu_regulator_init(void);
+extern int mx6q_sabreauto_init_pfuze100(u32 int_gpio);
 #endif