From patchwork Wed Aug 7 08:31:09 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Naveen Krishna Chatradhi X-Patchwork-Id: 2839985 X-Patchwork-Delegate: rui.zhang@intel.com Return-Path: X-Original-To: patchwork-linux-pm@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 D6783BF535 for ; Wed, 7 Aug 2013 08:36:33 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id D16F420165 for ; Wed, 7 Aug 2013 08:36:32 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 6CC3F20179 for ; Wed, 7 Aug 2013 08:36:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756570Ab3HGIgY (ORCPT ); Wed, 7 Aug 2013 04:36:24 -0400 Received: from mailout2.samsung.com ([203.254.224.25]:65232 "EHLO mailout2.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756619Ab3HGIgW (ORCPT ); Wed, 7 Aug 2013 04:36:22 -0400 Received: from epcpsbgr2.samsung.com (u142.gpu120.samsung.co.kr [203.254.230.142]) by mailout2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MR500AUGJWHYM90@mailout2.samsung.com>; Wed, 07 Aug 2013 17:36:20 +0900 (KST) Received: from epcpsbgm2.samsung.com ( [172.20.52.126]) by epcpsbgr2.samsung.com (EPCPMTA) with SMTP id 7C.AB.08825.40702025; Wed, 07 Aug 2013 17:36:20 +0900 (KST) X-AuditID: cbfee68e-b7f276d000002279-98-52020704d8ef Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id 6B.37.31505.40702025; Wed, 07 Aug 2013 17:36:20 +0900 (KST) Received: from naveen-linux.sisodomain.com ([107.108.83.161]) by mmp2.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0MR50065SJWEAV20@mmp2.samsung.com>; Wed, 07 Aug 2013 17:36:20 +0900 (KST) From: Naveen Krishna Chatradhi To: linux-pm@vger.kernel.org, rui.zhang@intel.com, eduardo.valentin@ti.com Cc: linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org, amit.daniel@samsung.com, kgene.kim@samsung.com Subject: [PATCH] thermal: exynos_tmu: fix wrong error check for mapped memory Date: Wed, 07 Aug 2013 14:01:09 +0530 Message-id: <1375864269-9197-1-git-send-email-ch.naveen@samsung.com> X-Mailer: git-send-email 1.7.9.5 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrBLMWRmVeSWpSXmKPExsWyRsSkTpeFnSnI4NVvGYuGqyEWa/b/ZLLo XXCVzeLyrjlsFp97jzBazDi/j8niycM+Ngd2j8V7XjJ59G1Zxehx/MZ2Jo/Pm+QCWKK4bFJS czLLUov07RK4Mp68/85asIStom3hAZYGxiWsXYycHBICJhJ925YyQdhiEhfurWfrYuTiEBJY yiix8tUuRpiiCxPWs0IkpjNKLJh0nRHC6WGS2HNiDjtIFZuAmcTBRavBbBEBL4lZD6+CjWUW KJV4uPMX2DphAV+JNZ2f2UBsFgFViR0PP4PV8Aq4SKzb+hyolwNom4LEnEk2IPMlBL6zSfy4 cpERol5A4tvkQywQNbISmw4wQxwnKXFwxQ2WCYyCCxgZVjGKphYkFxQnpRcZ6RUn5haX5qXr JefnbmIEhurpf8/6djDePGB9iDEZaNxEZinR5HxgqOeVxBsamxlZmJqYGhuZW5qRJqwkzqvW Yh0oJJCeWJKanZpakFoUX1Sak1p8iJGJg1OqgTF7zdvGW3eO8zsHxKh8ltq+7up+nZc+JnNn a1vEnVYoEU2xSdle3lCWvFuwab6v6t0T+jU/c/e9u8/Vu1pSW+SlFEPb7TULHR7tze9vbnsX vqsn5JuCzOlVCuvnLRS/7JIeE/tiW3SgPYvrH4GlNsdbtixflX8v+M9UF7Ynh2ak2TnlBfhl 9SmxFGckGmoxFxUnAgCNNdzCawIAAA== X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrKIsWRmVeSWpSXmKPExsVy+t9jQV0WdqYgg5X7RCwaroZYrNn/k8mi d8FVNovLu+awWXzuPcJoMeP8PiaLJw/72BzYPRbvecnk0bdlFaPH8RvbmTw+b5ILYIlqYLTJ SE1MSS1SSM1Lzk/JzEu3VfIOjneONzUzMNQ1tLQwV1LIS8xNtVVy8QnQdcvMAbpASaEsMacU KBSQWFyspG+HaUJoiJuuBUxjhK5vSBBcj5EBGkhYw5jx5P131oIlbBVtCw+wNDAuYe1i5OSQ EDCRuDBhPZQtJnHh3nq2LkYuDiGB6YwSCyZdZ4Rwepgk9pyYww5SxSZgJnFw0WowW0TAS2LW w6tMIDazQKnEw52/wCYJC/hKrOn8zAZiswioSux4+BmshlfARWLd1udAvRxA2xQk5kyymcDI vYCRYRWjaGpBckFxUnqukV5xYm5xaV66XnJ+7iZGcCQ8k97BuKrB4hCjAAejEg9vhRhjkBBr YllxZe4hRgkOZiUR3gmsTEFCvCmJlVWpRfnxRaU5qcWHGJOBlk9klhJNzgdGaV5JvKGxibmp samliYWJmSVpwkrivAdbrQOFBNITS1KzU1MLUotgtjBxcEo1MOb9qe/O7fi+ce79+AqtklNN /lHStwrf6jMKdP+w4bvwll2h/qCOzLabrJMm/PT9sKsm7Mz0zWXNjRs5n3FbRlXoPz2yUI/V 74+nnlO6q2GYSMT324IS1qdvLbrap732s+Q3c30D8+sPU17p9TR9k7h8xa6Ke8ksz7kKvyYe iHJ1ZrrcmM4voMRSnJFoqMVcVJwIAMng9EvIAgAA DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable 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 The error check is checking for a "base" mapped memory base instead of "base_common". Fixing the same. Signed-off-by: Naveen Krishna Chatradhi --- drivers/thermal/samsung/exynos_tmu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/thermal/samsung/exynos_tmu.c b/drivers/thermal/samsung/exynos_tmu.c index ec01dfe..a033dbb 100644 --- a/drivers/thermal/samsung/exynos_tmu.c +++ b/drivers/thermal/samsung/exynos_tmu.c @@ -592,7 +592,7 @@ static int exynos_map_dt_data(struct platform_device *pdev) data->base_common = devm_ioremap(&pdev->dev, res.start, resource_size(&res)); - if (!data->base) { + if (!data->base_common) { dev_err(&pdev->dev, "Failed to ioremap memory\n"); return -ENOMEM; }