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: 83674 Delivered-To: patch@linaro.org Received: by 10.182.1.168 with SMTP id 8csp2717580obn; Wed, 23 Nov 2016 05:40:19 -0800 (PST) X-Received: by 10.84.218.14 with SMTP id q14mr6660222pli.53.1479908419404; Wed, 23 Nov 2016 05:40:19 -0800 (PST) Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [131.252.210.177]) by mx.google.com with ESMTPS id d85si33854598pfb.163.2016.11.23.05.40.19 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 23 Nov 2016 05:40:19 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) client-ip=131.252.210.177; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@baylibre-com.20150623.gappssmtp.com; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org 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" 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; }