From patchwork Tue Nov 22 10:41:51 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 83377 Delivered-To: patch@linaro.org Received: by 10.182.1.168 with SMTP id 8csp2060090obn; Tue, 22 Nov 2016 02:42:39 -0800 (PST) X-Received: by 10.99.114.89 with SMTP id c25mr42118957pgn.4.1479811359101; Tue, 22 Nov 2016 02:42:39 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n127si27848246pga.323.2016.11.22.02.42.38; Tue, 22 Nov 2016 02:42:39 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932646AbcKVKm2 (ORCPT + 26 others); Tue, 22 Nov 2016 05:42:28 -0500 Received: from mail-wm0-f51.google.com ([74.125.82.51]:36222 "EHLO mail-wm0-f51.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755309AbcKVKmB (ORCPT ); Tue, 22 Nov 2016 05:42:01 -0500 Received: by mail-wm0-f51.google.com with SMTP id g23so17861479wme.1 for ; Tue, 22 Nov 2016 02:42:01 -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=Y4bzrusUDlpSZ1hwF9KeuU8y/5O9v6tg9sQQugUvtTE=; b=NYnguCygVuQY20yXIpPk/9H2sf7dD7ar4/TovhWsFTJ7W0Jc6ubWg/0QlKIDKKOYgj 77yvoBl37A+WVSafiNq/5F9XgvQmypRQU1U3r6xO5IuTBP/dxtLy9f6cMxttOffZYfA5 5yC8xB3yQvY6pc74/oRpSPsV4Daghypj6yDiEFqs8mTSeOBXU75r4u+UpY+tgiFt/UF+ qn2hpZJ09QQ7LfdUS1leAKP1N/0QY14LPxz7k22E1rhFzvM/mJwwmi46+4WoJmUZEDQZ +MzThp5QKY3HQwDHvNmNq9wASpZNM4MhIpLwZ10/OfoKyPB+MjFawkGYSgq1Ihtc/W1d sX+Q== 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=Y4bzrusUDlpSZ1hwF9KeuU8y/5O9v6tg9sQQugUvtTE=; b=D2EYeLRt2UYfCOAE31MSSWVOSxVQV9V/Dh9SmCnQRyo6mC724Nthscfi6vnfuNnKRA kg5GisCZss0k3KrpDaoMWHT0wLu5OsErY5nWrgEDrDceNgIo6WsVUxatWaGs3osQtuu/ jVYIdOtgGgn8CXRsPy8/8+cyfAkhyLjGASksuLdtYdmK6sA1EFGtbPeLs7CK43ZMzFJP p11P8P8WpTL14SaBvIShFla+5deRBimFs5ljHOrKrqbitJsjnwNIPkYixsTKs54+x2Aq EjV0KeVVWE5z3iOvtWpek514Ska7IG6FCWT/eU1SE+Mk2UOu69DXv1kd9iX59ElUcIcH OaXA== X-Gm-Message-State: AKaTC01yIGswBmA5um3fVD6huaN4eAVhWTaxhTdLafKiu4wp6i75Bh5OZPUNnFab82zu5LSz X-Received: by 10.28.183.215 with SMTP id h206mr1898962wmf.60.1479811320505; Tue, 22 Nov 2016 02:42:00 -0800 (PST) Received: from localhost.localdomain ([90.63.244.31]) by smtp.gmail.com with ESMTPSA id u81sm2228926wmu.10.2016.11.22.02.41.59 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 22 Nov 2016 02:42:00 -0800 (PST) From: Bartosz Golaszewski To: Kevin Hilman , Michael Turquette , Sekhar Nori , Rob Herring , Frank Rowand , Mark Rutland , Peter Ujfalusi , Russell King Cc: LKML , arm-soc , linux-drm , linux-devicetree , Jyri Sarha , Tomi Valkeinen , David Airlie , Laurent Pinchart , Robin Murphy , Sudeep Holla , Bartosz Golaszewski Subject: [PATCH 3/3] memory: da8xx-ddrctl: drop the call to of_flat_dt_get_machine_name() Date: Tue, 22 Nov 2016 11:41:51 +0100 Message-Id: <1479811311-3080-4-git-send-email-bgolaszewski@baylibre.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1479811311-3080-1-git-send-email-bgolaszewski@baylibre.com> References: <1479811311-3080-1-git-send-email-bgolaszewski@baylibre.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org In order to avoid a section mismatch use of_machine_get_compatible() instead of of_flat_dt_get_machine_name() when printing the error message. Signed-off-by: Bartosz Golaszewski --- drivers/memory/da8xx-ddrctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.9.3 diff --git a/drivers/memory/da8xx-ddrctl.c b/drivers/memory/da8xx-ddrctl.c index a20e7bb..179f505 100644 --- a/drivers/memory/da8xx-ddrctl.c +++ b/drivers/memory/da8xx-ddrctl.c @@ -118,7 +118,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()); + of_machine_get_compatible()); return -EINVAL; }