From patchwork Tue Nov 22 09:41:29 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 9440685 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 3A90460235 for ; Tue, 22 Nov 2016 09:44:25 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3694F269DA for ; Tue, 22 Nov 2016 09:44:25 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 22635284B6; Tue, 22 Nov 2016 09:44: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 8D3A8284AF for ; Tue, 22 Nov 2016 09:44:23 +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 1c97av-0004e9-1s; Tue, 22 Nov 2016 09:42:29 +0000 Received: from mail-wj0-x22f.google.com ([2a00:1450:400c:c01::22f]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1c97aL-0004G4-Vp for linux-arm-kernel@lists.infradead.org; Tue, 22 Nov 2016 09:41:56 +0000 Received: by mail-wj0-x22f.google.com with SMTP id v7so39594835wjy.2 for ; Tue, 22 Nov 2016 01:41:33 -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; bh=rFRn0ikeCiLndtJ4N9LQiB5w3vL0fcZYrdupq2WlYx8=; b=O/Y2Hs5ZFrqYJBThiWmKQZpt+qfFV49CUcoExY824UUoNfo/puKQr683cc/qf+Qki+ xD7vfWo/jvq0/MpAJSyJiqKlEahiVS6BJL/QFZqLpCGS93hZgncyAVYSopFh1J55/Ar8 vQgtubM7C55KpfR5rhiSGRqZQVpHWgajQVMm/uj9VUOzgwbqKFXLtZC8mDbEjMSZSRKJ am3aSxPw5cQ4W1KdFSB2BKTDLcsfJbWjEX6836tcN2ybKPaooslqbO3k7x96+/5y6AYw qxxSm0GRRPdhipH9q9SZEgT0gZBxSBAX+nDBD/4u8QgJ/gM8mXhZP6yYSc4BBOJZ2cKV DUSg== 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; bh=rFRn0ikeCiLndtJ4N9LQiB5w3vL0fcZYrdupq2WlYx8=; b=hN8zSiz3dB497pkHnPyhmQd67mIVdLWzkaxq/NeG/hzDk8gE5+aYtt9CVNl0jte+lP ivdyeMIm02ChQQdVWMFHRDSzb6teKk/yr4RvIvoTJPyKrhSxdwDP7zyKHV5UsUkg/MYa 3Til/A5Alh/URrtNpNPqzeta+BhU0/rMXC01swxib4PIYWvoTVXvmifsI6jhWTwkJEhw RFKMo0iy3iKC/HnFBV6txVI2kZPhA9HQ2A2+ME9dvAAW56nHTxOgcDsu/GNLhXjomp3u ncO7OQtAJBnGC5i46JFYFXiKQvoFPUFPpwZsp2xBcJ5MokpouhTWPDkT0Ylhe/qyDO5M 6Slg== X-Gm-Message-State: AKaTC034jIHBYd1PltEq32UkeqRE/dH6ILBZ5chctPsvoHi+kdyBEaXFBUIITSzzWp42Tqgk X-Received: by 10.194.93.104 with SMTP id ct8mr15748120wjb.87.1479807691869; Tue, 22 Nov 2016 01:41:31 -0800 (PST) Received: from localhost.localdomain ([90.63.244.31]) by smtp.gmail.com with ESMTPSA id x5sm29802815wje.36.2016.11.22.01.41.30 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 22 Nov 2016 01:41:31 -0800 (PST) From: Bartosz Golaszewski To: Jyri Sarha , Tomi Valkeinen , David Airlie , Kevin Hilman , Michael Turquette , Sekhar Nori Subject: [PATCH] drm: tilcdc: fix a DT property parsing Date: Tue, 22 Nov 2016 10:41:29 +0100 Message-Id: <1479807689-23804-1-git-send-email-bgolaszewski@baylibre.com> X-Mailer: git-send-email 2.1.4 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20161122_014154_377640_64BF972B X-CRM114-Status: GOOD ( 11.32 ) 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: Bartosz Golaszewski , LKML , linux-drm , arm-soc 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 The DT binding for tildc is not consistent with the driver code - the option in the binding is called 'max-width' while the code expects 'ti,max-width'. Make the driver code consistent with the binding. Signed-off-by: Bartosz Golaszewski --- drivers/gpu/drm/tilcdc/tilcdc_drv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/tilcdc/tilcdc_drv.c b/drivers/gpu/drm/tilcdc/tilcdc_drv.c index a7c91f7..4d3adf8e 100644 --- a/drivers/gpu/drm/tilcdc/tilcdc_drv.c +++ b/drivers/gpu/drm/tilcdc/tilcdc_drv.c @@ -302,7 +302,7 @@ static int tilcdc_init(struct drm_driver *ddrv, struct device *dev) DBG("Maximum Bandwidth Value %d", priv->max_bandwidth); - if (of_property_read_u32(node, "ti,max-width", &priv->max_width)) + if (of_property_read_u32(node, "max-width", &priv->max_width)) priv->max_width = TILCDC_DEFAULT_MAX_WIDTH; DBG("Maximum Horizontal Pixel Width Value %dpixels", priv->max_width);