From patchwork Thu Oct 20 06:46:32 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 78410 Delivered-To: patch@linaro.org Received: by 10.140.97.247 with SMTP id m110csp627343qge; Wed, 19 Oct 2016 23:46:45 -0700 (PDT) X-Received: by 10.98.92.65 with SMTP id q62mr18668655pfb.24.1476946005215; Wed, 19 Oct 2016 23:46:45 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g64si42654377pfk.112.2016.10.19.23.46.45; Wed, 19 Oct 2016 23:46:45 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-fbdev-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org; spf=pass (google.com: best guess record for domain of linux-fbdev-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-fbdev-owner@vger.kernel.org; dmarc=fail (p=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752837AbcJTGqo (ORCPT + 2 others); Thu, 20 Oct 2016 02:46:44 -0400 Received: from mail-lf0-f54.google.com ([209.85.215.54]:35264 "EHLO mail-lf0-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752435AbcJTGqn (ORCPT ); Thu, 20 Oct 2016 02:46:43 -0400 Received: by mail-lf0-f54.google.com with SMTP id l131so64576383lfl.2 for ; Wed, 19 Oct 2016 23:46:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=hOMSLNZ/HPZKNLJculDxCiwxjwha2Vv0MMDH/Rx0zeU=; b=Du7Y7PVlayrxVca5uxAtkyQLJcUyGG/Db9OLKUZASZ6uUxEqiTZ0NZOsmEzBKEzX34 NiA8JKpCqO7IEbW+4S4IhyKvrYFGzfXbOtjB+HlLea8kV4nTEiwq7SHyC8L2fIQipWyB RT83pLcjGb0i3B4jJodhbzL4/L77VyiMpCCwo= 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=hOMSLNZ/HPZKNLJculDxCiwxjwha2Vv0MMDH/Rx0zeU=; b=DerNSIz4+jd8ybNUP25lJg/uIRhJTQK6T5CovuPwfagJ1TkG9g+ycCdJID6tCAeiFv OdubFMY7SzlYZAUtoDBJOz2yp8DJFTE1WCPWfG/tX7/iiuQ2pOgedFZ4GWeOlmy8x3VM vpIhiZYFGeZJOhzaJEFqTdWlato43IZSw+Qq71iiWKUxNpAW+4C9FpnSpeYxshRi4g6a g+83A/J2gGiYh3OTHd+AY1WJ6GQ+SHgnRJRsDeki5ZP3FwpfmFtPYA8zfTfa7KFEkJC1 OlwfWN7IiBDRpGwmzuy3amIUJvov/YUUt1XAYoUeuVX4mUKPov5OQz7FdVXDpfdsAjdc rJ1A== X-Gm-Message-State: AA6/9RkCWUSgCJ7Vt2n9mOAjgVda3cnNJrJRVhWiozcB2WW6QXh0+0xS3lt2aWOSH5QnDMFj X-Received: by 10.25.195.209 with SMTP id t200mr6629329lff.172.1476946001341; Wed, 19 Oct 2016 23:46:41 -0700 (PDT) Received: from localhost.localdomain.localdomain (c-357171d5.014-348-6c756e10.cust.bredbandsbolaget.se. [213.113.113.53]) by smtp.gmail.com with ESMTPSA id n6sm2433500lfd.45.2016.10.19.23.46.40 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 19 Oct 2016 23:46:40 -0700 (PDT) From: Linus Walleij To: linux-fbdev@vger.kernel.org, Tomi Valkeinen , Jean-Christophe Plagniol-Villard , Pawel Moll , Amit Pundir Cc: linux-arm-kernel@lists.infradead.org, Linus Walleij Subject: [PATCH] video: ARM CLCD: fix Vexpress regression Date: Thu, 20 Oct 2016 08:46:32 +0200 Message-Id: <1476945992-5164-1-git-send-email-linus.walleij@linaro.org> X-Mailer: git-send-email 2.7.4 Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org The CLCD does not come up on Versatile Express as it does not (currently) have a syscon node for controlling the block apart from the CLCD itself. Make sure the .init() function can bail out without an error making it probe again. Reported-by: Amit Pundir Signed-off-by: Linus Walleij --- drivers/video/fbdev/amba-clcd-versatile.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) -- 2.7.4 -- To unsubscribe from this list: send the line "unsubscribe linux-fbdev" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Tested-by: Amit Pundir Tested-by: Nicolae Rosia diff --git a/drivers/video/fbdev/amba-clcd-versatile.c b/drivers/video/fbdev/amba-clcd-versatile.c index 19ad8645d93c..d909b7dda14d 100644 --- a/drivers/video/fbdev/amba-clcd-versatile.c +++ b/drivers/video/fbdev/amba-clcd-versatile.c @@ -527,7 +527,8 @@ int versatile_clcd_init_panel(struct clcd_fb *fb, &clcd_id); if (!np) { dev_err(dev, "no Versatile syscon node\n"); - return -ENODEV; + /* Vexpress does not have this */ + return 0; } versatile_clcd_type = (enum versatile_clcd)clcd_id->data;