From mboxrd@z Thu Jan 1 00:00:00 1970 From: Chandrabhanu Mahapatra Date: Mon, 13 Aug 2012 12:11:36 +0000 Subject: [PATCH 3/6] OMAPDSS: DSS: Cleanup cpu_is_xxxx checks Message-Id: <1344859176-4512-1-git-send-email-cmahapatra@ti.com> List-Id: References: <1344425899-28267-1-git-send-email-cmahapatra@ti.com> In-Reply-To: <1344425899-28267-1-git-send-email-cmahapatra@ti.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: tomi.valkeinen@ti.com Cc: linux-omap@vger.kernel.org, linux-fbdev@vger.kernel.org, Chandrabhanu Mahapatra All the cpu_is checks have been moved to dss_init_features function providing a much more generic and cleaner interface. The OMAP version and revision specific initializations in various functions are cleaned and the necessary data are moved to dss_features structure which is local to dss.c. Signed-off-by: Chandrabhanu Mahapatra --- drivers/video/omap2/dss/dss.c | 115 ++++++++++++++++++++++++++--------------- 1 file changed, 74 insertions(+), 41 deletions(-) diff --git a/drivers/video/omap2/dss/dss.c b/drivers/video/omap2/dss/dss.c index 7b1c6ac..6ab236e 100644 --- a/drivers/video/omap2/dss/dss.c +++ b/drivers/video/omap2/dss/dss.c @@ -31,6 +31,7 @@ #include #include #include +#include #include