From patchwork Tue Nov 22 10:41:50 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 83376 Delivered-To: patch@linaro.org Received: by 10.182.1.168 with SMTP id 8csp2059941obn; Tue, 22 Nov 2016 02:42:10 -0800 (PST) X-Received: by 10.99.218.85 with SMTP id l21mr42634603pgj.102.1479811330801; Tue, 22 Nov 2016 02:42:10 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 63si27830041pgi.211.2016.11.22.02.42.10; Tue, 22 Nov 2016 02:42:10 -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 S932594AbcKVKmH (ORCPT + 26 others); Tue, 22 Nov 2016 05:42:07 -0500 Received: from mail-wj0-f171.google.com ([209.85.210.171]:36406 "EHLO mail-wj0-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755341AbcKVKmB (ORCPT ); Tue, 22 Nov 2016 05:42:01 -0500 X-Greylist: delayed 3628 seconds by postgrey-1.27 at vger.kernel.org; Tue, 22 Nov 2016 05:42:01 EST Received: by mail-wj0-f171.google.com with SMTP id qp4so40351496wjc.3 for ; Tue, 22 Nov 2016 02:42:00 -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=os99jSayQP8VUwv+M3wVhekD/4vYQ6BBX/IFW3tvLec=; b=KKBJx+5dIIU3v7p+yuZyy5e1asFRcGzaj2zz8/MAxKbQ+8piGECYVrljZ2oLJpW/Ns HgLsWNpXUFiG3WtETiwYPud6z/tMg7A6z4BM1yRmAcO5M7fTWazaa23FnkHdRBgPFWnc sfpkP/v/mEeOkbuqQKy4RjrX00iGC6xpzjaosZaGwxRDokttexeIvfvja2izuKjagwly IPX0+oMj9gfiWKvLpb0z1+iognyH8xM30haRsxefOxjaGw28jAY1tqL8ew8h5fkGXQkt mTcd09C06u9UPhQFXGzH0EmGWuJ5Pd+LBWU6i/U4xtlwcrKvgRwSFcYD1FQA87cJDjE+ 1LgA== 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=os99jSayQP8VUwv+M3wVhekD/4vYQ6BBX/IFW3tvLec=; b=lV0iUiTt8uTsf8s3vzSL4meZYeUR9fHHLfrdFVB8CUZzAHeOTDWZcF0DUYkYOJ0B+4 bXAWuVExqVMRJEL+ToyWBkjVnXyfcsHiJSqTfcduk47IzqStHTnQ3leHgT5itkiObvGb iRcluKY4DY43MkOKJF9LZD4RQY2sTdMVzBJ4o0DDMGZgPRDCt8lVpgsEAuYc42+6VJqk yrVRVcX8E+pnDTeb5dqSHgeyGwJFiA5Yej4jGhUiHTsVilWM3eIASuEu+xZ+jOMMPZdl GbEG4g95yFj+XqTlaR8Xe4g8ZnlxsqC2rY9UxtCfbz2vmeeR23UYBBlBXV5e+xVdWSSz W5mg== X-Gm-Message-State: AKaTC00eO7sOn2+vIqiizDwUOjehEr0dvCfZvvINYk6KePi1m4mKhjxqHeEAffJYG4noi/Bf X-Received: by 10.194.43.73 with SMTP id u9mr13360580wjl.109.1479811319442; Tue, 22 Nov 2016 02:41:59 -0800 (PST) Received: from localhost.localdomain ([90.63.244.31]) by smtp.gmail.com with ESMTPSA id u81sm2228926wmu.10.2016.11.22.02.41.58 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 22 Nov 2016 02:41:59 -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 2/3] bus: da8xx-mstpri: drop the call to of_flat_dt_get_machine_name() Date: Tue, 22 Nov 2016 11:41:50 +0100 Message-Id: <1479811311-3080-3-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/bus/da8xx-mstpri.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.9.3 diff --git a/drivers/bus/da8xx-mstpri.c b/drivers/bus/da8xx-mstpri.c index 85f0b53..41cbbe6 100644 --- a/drivers/bus/da8xx-mstpri.c +++ b/drivers/bus/da8xx-mstpri.c @@ -227,7 +227,7 @@ static int da8xx_mstpri_probe(struct platform_device *pdev) prio_list = da8xx_mstpri_get_board_prio(); if (!prio_list) { dev_err(dev, "no master priotities defined for board '%s'\n", - of_flat_dt_get_machine_name()); + of_machine_get_compatible()); return -EINVAL; }