From f10449e4761b31e52fdaebd2decc179213c7289e Mon Sep 17 00:00:00 2001 From: Tomi Valkeinen Date: Tue, 20 Sep 2011 12:16:49 +0300 Subject: [PATCH] --- yaml --- r: 294326 b: refs/heads/master c: 58e0d6ab02eb90e67720ef1c20ab606749a9ef29 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/arch/arm/mach-omap1/board-nokia770.c | 6 ------ .../arch/arm/plat-omap/include/plat/hwa742.h | 8 ------- trunk/drivers/video/omap/hwa742.c | 21 +++++-------------- 4 files changed, 6 insertions(+), 31 deletions(-) delete mode 100644 trunk/arch/arm/plat-omap/include/plat/hwa742.h diff --git a/[refs] b/[refs] index 9a3691f5235f..8e08daf0f788 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: f0e41ab53d97aa991f9cb48ec474a22108c97527 +refs/heads/master: 58e0d6ab02eb90e67720ef1c20ab606749a9ef29 diff --git a/trunk/arch/arm/mach-omap1/board-nokia770.c b/trunk/arch/arm/mach-omap1/board-nokia770.c index f9efc036ba96..7155d8ce516a 100644 --- a/trunk/arch/arm/mach-omap1/board-nokia770.c +++ b/trunk/arch/arm/mach-omap1/board-nokia770.c @@ -31,7 +31,6 @@ #include #include #include "common.h" -#include #include #include #include @@ -150,14 +149,9 @@ static struct spi_board_info nokia770_spi_board_info[] __initdata = { }, }; -static struct hwa742_platform_data nokia770_hwa742_platform_data = { - .te_connected = 1, -}; - static void __init hwa742_dev_init(void) { clk_add_alias("hwa_sys_ck", NULL, "bclk", NULL); - omapfb_set_ctrl_platform_data(&nokia770_hwa742_platform_data); } /* assume no Mini-AB port */ diff --git a/trunk/arch/arm/plat-omap/include/plat/hwa742.h b/trunk/arch/arm/plat-omap/include/plat/hwa742.h deleted file mode 100644 index 886248d32b49..000000000000 --- a/trunk/arch/arm/plat-omap/include/plat/hwa742.h +++ /dev/null @@ -1,8 +0,0 @@ -#ifndef _HWA742_H -#define _HWA742_H - -struct hwa742_platform_data { - unsigned te_connected:1; -}; - -#endif diff --git a/trunk/drivers/video/omap/hwa742.c b/trunk/drivers/video/omap/hwa742.c index 084aa0ac562b..9f1d23c319cb 100644 --- a/trunk/drivers/video/omap/hwa742.c +++ b/trunk/drivers/video/omap/hwa742.c @@ -28,7 +28,6 @@ #include #include -#include #include "omapfb.h" #define HWA742_REV_CODE_REG 0x0 @@ -942,7 +941,6 @@ static int hwa742_init(struct omapfb_device *fbdev, int ext_mode, unsigned long sys_clk, pix_clk; int extif_mem_div; struct omapfb_platform_data *omapfb_conf; - struct hwa742_platform_data *ctrl_conf; BUG_ON(!fbdev->ext_if || !fbdev->int_ctrl); @@ -951,13 +949,6 @@ static int hwa742_init(struct omapfb_device *fbdev, int ext_mode, hwa742.int_ctrl = fbdev->int_ctrl; omapfb_conf = fbdev->dev->platform_data; - ctrl_conf = omapfb_conf->ctrl_platform_data; - - if (ctrl_conf == NULL) { - dev_err(fbdev->dev, "HWA742: missing platform data\n"); - r = -ENOENT; - goto err1; - } hwa742.sys_ck = clk_get(NULL, "hwa_sys_ck"); @@ -995,14 +986,12 @@ static int hwa742_init(struct omapfb_device *fbdev, int ext_mode, goto err4; } - if (ctrl_conf->te_connected) { - if ((r = setup_tearsync(pix_clk, extif_mem_div)) < 0) { - dev_err(hwa742.fbdev->dev, - "HWA742: can't setup tearing synchronization\n"); - goto err4; - } - hwa742.te_connected = 1; + if ((r = setup_tearsync(pix_clk, extif_mem_div)) < 0) { + dev_err(hwa742.fbdev->dev, + "HWA742: can't setup tearing synchronization\n"); + goto err4; } + hwa742.te_connected = 1; hwa742.max_transmit_size = hwa742.extif->max_transmit_size;