From patchwork Thu Jan 2 21:27:02 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Russell King X-Patchwork-Id: 3431731 Return-Path: X-Original-To: patchwork-dri-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 39BDDC02DC for ; Fri, 3 Jan 2014 15:23:02 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 4876720122 for ; Fri, 3 Jan 2014 15:23:01 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id 2C1692010C for ; Fri, 3 Jan 2014 15:23:00 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 1078DFAA71 for ; Fri, 3 Jan 2014 07:23:00 -0800 (PST) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from pandora.arm.linux.org.uk (gw-1.arm.linux.org.uk [78.32.30.217]) by gabe.freedesktop.org (Postfix) with ESMTP id D054DFB914 for ; Thu, 2 Jan 2014 13:32:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=arm.linux.org.uk; s=pandora; h=Date:Sender:Message-Id:Subject:Cc:To:From:References:In-Reply-To; bh=O6mUnOS1Gmhx02WaqL2O6bZwEZDamHouKfJNaMQA3Fo=; b=RRFZ/oRNaCfvOKxbULknlpN1lp/+LwKZsG5v45Gq/MFcLozCeW9Uabb0/Gi7l4UmmsHS+44RICWep/CCvSCA7CF1o2uNEE7rOOAmFLgv/cD8MLBL5dG14pgXorLlDAn80Aa8JXqKLPTP323IfDpa65Lm68aPQXlSa4PBkWdYUOM=; Received: from [2001:4d48:ad52:3201:222:68ff:fe15:37dd] (port=58596 helo=rmk-PC.arm.linux.org.uk) by pandora.arm.linux.org.uk with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.76) (envelope-from ) id 1VypnC-00049z-SW; Thu, 02 Jan 2014 21:27:02 +0000 Received: from rmk by rmk-PC.arm.linux.org.uk with local (Exim 4.76) (envelope-from ) id 1VypnC-0007EW-Eq; Thu, 02 Jan 2014 21:27:02 +0000 In-Reply-To: <20140102212528.GD7383@n2100.arm.linux.org.uk> References: <20140102212528.GD7383@n2100.arm.linux.org.uk> From: Russell King To: David Airlie , Greg Kroah-Hartman , Sascha Hauer , Shawn Guo Subject: [PATCH RFC 15/46] imx-drm: imx-hdmi: minor cleanups Message-Id: Date: Thu, 02 Jan 2014 21:27:02 +0000 X-Mailman-Approved-At: Fri, 03 Jan 2014 07:21:55 -0800 Cc: devel@driverdev.osuosl.org, dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: dri-devel-bounces+patchwork-dri-devel=patchwork.kernel.org@lists.freedesktop.org Errors-To: dri-devel-bounces+patchwork-dri-devel=patchwork.kernel.org@lists.freedesktop.org X-Spam-Status: No, score=-4.6 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,RP_MATCHES_RCVD,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Some minor cleanups to the HDMI driver. Signed-off-by: Russell King --- drivers/staging/imx-drm/imx-hdmi.c | 5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/staging/imx-drm/imx-hdmi.c b/drivers/staging/imx-drm/imx-hdmi.c index 1eb12c57aa3e..ee0fceb7b5b2 100644 --- a/drivers/staging/imx-drm/imx-hdmi.c +++ b/drivers/staging/imx-drm/imx-hdmi.c @@ -19,7 +19,6 @@ #include #include #include - #include #include @@ -37,7 +36,7 @@ #define YCBCR444 1 #define YCBCR422_16BITS 2 #define YCBCR422_8BITS 3 -#define XVYCC444 4 +#define XVYCC444 4 enum hdmi_datamap { RGB444_8B = 0x01, @@ -1762,8 +1761,8 @@ static int imx_hdmi_platform_probe(struct platform_device *pdev) struct device_node *np = pdev->dev.of_node; struct device_node *ddc_node; struct imx_hdmi *hdmi; - int ret, irq; struct resource *iores; + int ret, irq; hdmi = devm_kzalloc(&pdev->dev, sizeof(*hdmi), GFP_KERNEL); if (!hdmi)