From patchwork Wed Nov 23 13:39:59 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 9443291 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 D4125600BA for ; Wed, 23 Nov 2016 13:42:25 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C21FA208E3 for ; Wed, 23 Nov 2016 13:42:25 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B61E826212; Wed, 23 Nov 2016 13:42:25 +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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 5C4B2208E3 for ; Wed, 23 Nov 2016 13:42:25 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1c9XnB-0000Ft-6a; Wed, 23 Nov 2016 13:40:53 +0000 Received: from mail-wj0-x231.google.com ([2a00:1450:400c:c01::231]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1c9Xml-0007HM-2v for linux-arm-kernel@lists.infradead.org; Wed, 23 Nov 2016 13:40:28 +0000 Received: by mail-wj0-x231.google.com with SMTP id mp19so9728547wjc.1 for ; Wed, 23 Nov 2016 05:40:06 -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=TBQCMDqHgNA8H0ok88a1YGm8kfIK0cAKzjFwEZYJ+hQ=; b=0GM7B3KklciYuCxYZSu2Oxgm35w6jZMVCfLcQd5PvDgN2opShI52kZhGdbfFsR4CtL vavy0UKkTptlMg7fNiPt+KfDbS6jkcEtuBIUqrU2fvRBz+0n+p21/yHMv9Vrr/0ykjJ9 Jk6FIvoFFrpUDVLGzfddQvwAXkx9Si3yICI786t1lS2vw5WajYDONWkQXur59qGz/MAU 91slbdazHDF2mO3LvzQ/aAiFK6lanV6QHYxlQeQ6Gnwd7IbCiQUDEZYieCmNvsFj+z+1 roq5m7J03zCHe1OG++R8KwdOmCdtbaVXWV+0pj8TsRDfljBt+7c9chqlVn1wrF9OWOgq jYqA== 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=TBQCMDqHgNA8H0ok88a1YGm8kfIK0cAKzjFwEZYJ+hQ=; b=Q+JYU7OQIHtBlAy2vnN+SUkLDzPcUU3MyGIZzGw87DCJ5SS5grlvmS76rnpUijuQTw zaSSOxGBld6Jx+MqAp/1OlTAjrjRkiRPeffP3eBzKBiRfxyL8vPPY8P4zOFzq8lQiThB ZXcxhYdFtdtsiEhh5732R9SvtHuU2/HfoeUacY91b4JQPt8XGDSm3oJb/hIAXlGlZlpn 6QfSPUSTS9TA77Q0DilU1CrLGi+Qy457ikJTvqms6UWCQ5Mcehl1qY337p6VnopOWU/g vk3FTC6XI8gB65k02fGiAnXqPHJ48+3YlXnbfm9H7dDuf8TC7OByuDYiF/0Bo0+N1mMm EXOA== X-Gm-Message-State: AKaTC01Sth4OUctFi1CmDhYvbJwjxUpGNPmW3ZsEz+OnnU4Yx/uvuEG7Fr9L3kLQ7lu8TR1X X-Received: by 10.194.26.133 with SMTP id l5mr3374044wjg.4.1479908405115; Wed, 23 Nov 2016 05:40:05 -0800 (PST) Received: from localhost.localdomain ([90.63.244.31]) by smtp.gmail.com with ESMTPSA id 138sm2835918wms.20.2016.11.23.05.40.03 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 23 Nov 2016 05:40:04 -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 1/2] bus: da8xx-mstpri: drop the call to of_flat_dt_get_machine_name() Date: Wed, 23 Nov 2016 14:39:59 +0100 Message-Id: <1479908400-10136-2-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> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20161123_054027_320975_07426914 X-CRM114-Status: GOOD ( 12.39 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-devicetree , David Airlie , LKML , linux-drm , Bartosz Golaszewski , Tomi Valkeinen , Jyri Sarha , Sudeep Holla , Robin Murphy , arm-soc , Laurent Pinchart MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org 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. While we're at it: fix a typo. Signed-off-by: Bartosz Golaszewski --- drivers/bus/da8xx-mstpri.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/bus/da8xx-mstpri.c b/drivers/bus/da8xx-mstpri.c index 85f0b53..063397f 100644 --- a/drivers/bus/da8xx-mstpri.c +++ b/drivers/bus/da8xx-mstpri.c @@ -16,7 +16,6 @@ #include #include #include -#include /* * REVISIT: Linux doesn't have a good framework for the kind of performance @@ -226,8 +225,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()); + dev_err(dev, "no master priorities defined for this board\n"); return -EINVAL; }