From patchwork Mon Sep 17 05:34:55 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shawn Guo X-Patchwork-Id: 1465361 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) by patchwork1.kernel.org (Postfix) with ESMTP id 5A40F3FCFC for ; Mon, 17 Sep 2012 05:51:20 +0000 (UTC) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1TDUB4-0001X5-J2; Mon, 17 Sep 2012 05:47:27 +0000 Received: from mail-pb0-f49.google.com ([209.85.160.49]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1TDU0s-0001e5-Jx for linux-arm-kernel@lists.infradead.org; Mon, 17 Sep 2012 05:36:55 +0000 Received: by mail-pb0-f49.google.com with SMTP id rq8so9280584pbb.36 for ; Sun, 16 Sep 2012 22:36:54 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references :x-gm-message-state; bh=UKCKwiBEO5LJMttn0OhBWOLZIpRL6Y6iTrw0JPWkemc=; b=cKssgc1lvbKQrJrpU09RozZVJt/gy4UkSo0IrEQ2TDYHRA5Sq50M35XDcH2FvgXTHK jPvfWmR/uu5Hpf50vg6cApYWql9wPt4EosesK0ICZjCgUqa7bOAp+n0r+EJ+9ZR0p4ZK quG0PDEMxk0ONvqexCCfjBIJwY9tfeBgKEmZpSNYtcGNrlKW7QcuSrpCFDO3H6Dj1hF2 NYggi8e5hn9XZKEssNdSWNjafDu3UmQIJajb7juy/V77qH46oO/0EYam0gPSfsFips2e hMh5LQd4x4P4P3R4gvr5miSqh1GFflGjMQG5/xMOvEQhmHkwrdD/ezXV4XTBrrcUrzk5 vZSw== Received: by 10.68.229.6 with SMTP id sm6mr20213472pbc.120.1347860214344; Sun, 16 Sep 2012 22:36:54 -0700 (PDT) Received: from S2101-09.ap.freescale.net ([221.225.141.190]) by mx.google.com with ESMTPS id it6sm6386097pbc.14.2012.09.16.22.36.49 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 16 Sep 2012 22:36:53 -0700 (PDT) From: Shawn Guo To: linux-arm-kernel@lists.infradead.org Subject: [PATCH 26/34] media: mx2_camera: remove dead code in mx2_camera_add_device Date: Mon, 17 Sep 2012 13:34:55 +0800 Message-Id: <1347860103-4141-27-git-send-email-shawn.guo@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1347860103-4141-1-git-send-email-shawn.guo@linaro.org> References: <1347860103-4141-1-git-send-email-shawn.guo@linaro.org> X-Gm-Message-State: ALoCoQkk6dDNNtOsUZ3p826LSYm6WAgTm+u9FQmBoNTxBtNTf5+y1sYADOvf6Vq9H4kcZRPCYz9v X-Spam-Note: CRM114 invocation failed X-Spam-Score: -2.6 (--) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-2.6 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [209.85.160.49 listed in list.dnswl.org] -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] Cc: Fabio Estevam , Arnd Bergmann , Sascha Hauer , Rob Herring , Shawn Guo , Guennadi Liakhovetski , linux-media@vger.kernel.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: linux-arm-kernel-bounces@lists.infradead.org Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org This is a piece of code becoming dead since commit 2c9ba37 ([media] V4L: mx2_camera: remove unsupported i.MX27 DMA mode, make EMMA mandatory). It should have been removed together with the commit. Remove it now. Signed-off-by: Shawn Guo Cc: Guennadi Liakhovetski Cc: linux-media@vger.kernel.org Acked-by: Guennadi Liakhovetski Acked-by: Javier Martin --- drivers/media/video/mx2_camera.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/media/video/mx2_camera.c b/drivers/media/video/mx2_camera.c index 965427f..89c7e28 100644 --- a/drivers/media/video/mx2_camera.c +++ b/drivers/media/video/mx2_camera.c @@ -441,11 +441,9 @@ static int mx2_camera_add_device(struct soc_camera_device *icd) csicr1 = CSICR1_MCLKEN; - if (cpu_is_mx27()) { + if (cpu_is_mx27()) csicr1 |= CSICR1_PRP_IF_EN | CSICR1_FCC | CSICR1_RXFF_LEVEL(0); - } else if (cpu_is_mx27()) - csicr1 |= CSICR1_SOF_INTEN | CSICR1_RXFF_LEVEL(2); pcdev->csicr1 = csicr1; writel(pcdev->csicr1, pcdev->base_csi + CSICR1);