From 46aa44218286d7cf28ec0a58e4ecd3ecaca62778 Mon Sep 17 00:00:00 2001 From: hhb Date: Fri, 26 Jul 2013 16:08:31 +0800 Subject: [PATCH] mipi dsi: fix compile error,sorry --- drivers/video/rockchip/transmitter/rk616_mipi_dsi.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/drivers/video/rockchip/transmitter/rk616_mipi_dsi.c b/drivers/video/rockchip/transmitter/rk616_mipi_dsi.c index 700f04d18e3e..380612ee3e6e 100644 --- a/drivers/video/rockchip/transmitter/rk616_mipi_dsi.c +++ b/drivers/video/rockchip/transmitter/rk616_mipi_dsi.c @@ -18,7 +18,7 @@ #define MIPI_DSI_REGISTER_IO 1 #define CONFIG_MIPI_DSI_LINUX 1 //#define CONFIG_MIPI_DSI_FT 1 -#define CONFIG_MFD_RK616 1 +#define CONFIG_MFD_RK616 1 #ifdef CONFIG_MIPI_DSI_LINUX #include @@ -912,8 +912,6 @@ static int rk_mipi_dsi_probe(void *array, int n) { #include #include -static struct proc_dir_entry *reg_proc_entry; - int reg_proc_write(struct file *file, const char __user *buff, size_t count, loff_t *offp) { int ret = -1, i = 0; @@ -966,7 +964,7 @@ int reg_proc_write(struct file *file, const char __user *buff, size_t count, lof case 's': while(*(++data) == ' '); sscanf(data, "%d", &read_val); - rk_mipi_dsi_init_lite(g_screen, read_val * MHz); + rk_mipi_dsi_init(g_screen, read_val * MHz); break; case 'd': case 'g': @@ -1109,6 +1107,7 @@ static int reg_proc_init(char *name) debugfs_create_file("mipi", S_IRUSR, dsi_rk616->debugfs_dir, dsi_rk616, ®_proc_fops); #endif #else + static struct proc_dir_entry *reg_proc_entry; reg_proc_entry = create_proc_entry(name, 0666, NULL); if(reg_proc_entry == NULL) { MIPI_TRACE("Couldn't create proc entry : %s!\n", name); -- 2.34.1