From patchwork Wed Nov 23 13:40:00 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 9443281 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id E4C64600BA for ; Wed, 23 Nov 2016 13:40:19 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D3EC726212 for ; Wed, 23 Nov 2016 13:40:19 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C8C412621D; Wed, 23 Nov 2016 13:40:19 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 9084A26212 for ; Wed, 23 Nov 2016 13:40:19 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 4E7D36E881; Wed, 23 Nov 2016 13:40:16 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wj0-x22b.google.com (mail-wj0-x22b.google.com [IPv6:2a00:1450:400c:c01::22b]) by gabe.freedesktop.org (Postfix) with ESMTPS id 130C66E87E for ; Wed, 23 Nov 2016 13:40:08 +0000 (UTC) Received: by mail-wj0-x22b.google.com with SMTP id qp4so9654080wjc.3 for ; Wed, 23 Nov 2016 05:40:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=OqY9w/MuWgMrrNJMIAK7KjiAOsEMwVil7Tuk9kl0PmE=; b=Lr+bSE8FhfzJZE6es4nwqsur2e2tJfqxnmyyBtywc8mW20flT7mAjArMwAWu0pN7cX Kpq5ypWaG9qb9fxFhjP48T1Y8XT4Fgh86zbEJK1OocMyu593UTAkveoKNUOhyVeY8RvC j9+waHNVTUMaeJMYuQ2DvCJKAoYtDb9PSozxnvbL+Xrf3TUgi5hcCfEv6ef+5BemyvDL A25e8Kirlyj/VP3KVl0mI1Mt/nwbbXa7zxhACowTGTuUc98HfIQysl5arPQrF29EzREC 3h8o2c7m2f6vTBrjTqw3L4bbDQTDICln7RUlB1TYRWuhuR4AXDnpSC69+G2vPb+V1FWK RWbw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=OqY9w/MuWgMrrNJMIAK7KjiAOsEMwVil7Tuk9kl0PmE=; b=YaDIBOcTf3j0WAn8iFFxM1P3pbNWx8joK40RckiSmoxWmmi03qKC8xxM1Zzlnfa7ra LwiQc/0TFcMl+SpX9xNQSXisvIpAGfvnD/KP/Yhasuy58SqLxZOOVbFsdoxDIVbC4DVz JZzK0IkusBswj6NW01rz0uG+SBdIKHsOORdfDB4OrXs+nwnDRYcqD2klrAH9k7AQ5wY6 RZsKC5Gg37amU1XX0rzwIeKsMZEEFySysUrMWSJipeiilxZDfkaH4WVY7juNkK2rQWW7 TZVfZnbZN9T1YR3faxz/W//aFA9Q2HEmXx42m6xbeIyA5YDs2GZCwJbxGlPpTQszAfGh kgyg== X-Gm-Message-State: AKaTC01POkSMTDaR5+gmdBw/FKvVwljzS5DOZFCJxUZzgDWmmWSdQTzRRRnIovd/hQYYE189 X-Received: by 10.194.21.35 with SMTP id s3mr3254954wje.192.1479908406363; Wed, 23 Nov 2016 05:40:06 -0800 (PST) Received: from localhost.localdomain ([90.63.244.31]) by smtp.gmail.com with ESMTPSA id 138sm2835918wms.20.2016.11.23.05.40.05 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 23 Nov 2016 05:40:05 -0800 (PST) From: Bartosz Golaszewski To: Kevin Hilman , Michael Turquette , Sekhar Nori , Rob Herring , Frank Rowand , Mark Rutland , Peter Ujfalusi , Russell King Subject: [PATCH v4 2/2] memory: da8xx-ddrctl: drop the call to of_flat_dt_get_machine_name() Date: Wed, 23 Nov 2016 14:40:00 +0100 Message-Id: <1479908400-10136-3-git-send-email-bgolaszewski@baylibre.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1479908400-10136-1-git-send-email-bgolaszewski@baylibre.com> References: <1479908400-10136-1-git-send-email-bgolaszewski@baylibre.com> Cc: linux-devicetree , LKML , linux-drm , Bartosz Golaszewski , Tomi Valkeinen , Jyri Sarha , Sudeep Holla , Robin Murphy , arm-soc , Laurent Pinchart X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP In order to avoid a section mismatch drop the call to of_flat_dt_get_machine_name() when printing the error message. Signed-off-by: Bartosz Golaszewski --- drivers/memory/da8xx-ddrctl.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/memory/da8xx-ddrctl.c b/drivers/memory/da8xx-ddrctl.c index a20e7bb..030afbe 100644 --- a/drivers/memory/da8xx-ddrctl.c +++ b/drivers/memory/da8xx-ddrctl.c @@ -14,7 +14,6 @@ #include #include #include -#include #include #include @@ -117,8 +116,7 @@ static int da8xx_ddrctl_probe(struct platform_device *pdev) setting = da8xx_ddrctl_get_board_settings(); if (!setting) { - dev_err(dev, "no settings for board '%s'\n", - of_flat_dt_get_machine_name()); + dev_err(dev, "no settings defined for this board\n"); return -EINVAL; }