Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1917915imm; Tue, 10 Jul 2018 09:59:29 -0700 (PDT) X-Google-Smtp-Source: AAOMgpemPkajMPqWbbX86ztmjY3qbpKb6wgZk4M5YJYZ++yF3BgbQL3uwz0SMAn1rnI5hqgScxne X-Received: by 2002:a17:902:3081:: with SMTP id v1-v6mr26162419plb.266.1531241969436; Tue, 10 Jul 2018 09:59:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531241969; cv=none; d=google.com; s=arc-20160816; b=ctPXNMOM0zSMZvay3QqiL94JgSxAO0bab1+Jf87hvaC0BGccGAxHgVXsfG8/SLy0d2 6IA2ikL7KINj/OLnRl/FqjAGtf6mZwiGTbQfMbz2PPiI0yKknOIV9qwVB72qwH7Z28YH sfdMzi3JxhARlkrofI9t02Bjhmr6ynstDhp7xuHrTQlGeHZWgtEjJ4CWiCsZqpA2o+KQ kXGUuo0OmGC8uddp53qXLSS0pJgluBnShTgw3/SQOZnXTxm5zEQuaZFQT+MgKVySVHQW G97U/Fu8iiYZXPcTIwBFad/RYEh9W3GX9MTA10ZpqeL31hzB1aUVz7zqAGIZspwypAYd tc4Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:in-reply-to :mime-version:user-agent:date:message-id:from:references:cc:to :subject:arc-authentication-results; bh=xV1i9xw23Jk48nokFy1QUu9UdLfNcdDVOUd56A4MPa8=; b=XZMfUPHZvaLiAG3X6qIcAR9OdAYFNPXBWUTUJLiJgmao+hfRRbJI6ojYiAVmunMSmm Y7KOE6sYtWZ9QygOiUZe/RE0IKasRBxIQqpFwnx0Pa548dN+ikZj61RzmaPiZKC0RbHO 4t34lJPVT+sQJzMqLkOdflnC1wPpgLt1vtoXTmaAR1OhjVAIj6lIzWokIZDqw5UzTkOr WnPE0UKXVcRrbCNIQvRtScSBTE/s8idPeiTrFr2qgVXD6HfAnJpBym8SuVQkLPlmcQ21 d5HuYS8QSMgGV7OO3ksjcyZa39ItC6g2qedYumF2RkA+DumWKfMnDx0HHRi5eXPX8Cc0 pnhA== ARC-Authentication-Results: i=1; mx.google.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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s11-v6si16894530plp.464.2018.07.10.09.59.14; Tue, 10 Jul 2018 09:59:29 -0700 (PDT) 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; 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 S934269AbeGJPzZ (ORCPT + 99 others); Tue, 10 Jul 2018 11:55:25 -0400 Received: from smtp.domeneshop.no ([194.63.252.55]:42524 "EHLO smtp.domeneshop.no" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933846AbeGJPzY (ORCPT ); Tue, 10 Jul 2018 11:55:24 -0400 Received: from 211.81-166-168.customer.lyse.net ([81.166.168.211]:52454 helo=[192.168.10.175]) by smtp.domeneshop.no with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1fcuz4-0004lR-3I; Tue, 10 Jul 2018 17:55:22 +0200 Subject: Re: [PATCH] drm/tinydrm: add backlight dependency for ili9341 To: Arnd Bergmann , David Airlie , David Lechner Cc: Sean Paul , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org References: <20180709152106.990066-1-arnd@arndb.de> From: =?UTF-8?Q?Noralf_Tr=c3=b8nnes?= Message-ID: <42317727-5159-7cc2-f6a8-18c8f97b9e6e@tronnes.org> Date: Tue, 10 Jul 2018 17:55:20 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.9.0 MIME-Version: 1.0 In-Reply-To: <20180709152106.990066-1-arnd@arndb.de> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Den 09.07.2018 17.20, skrev Arnd Bergmann: > This tinydrm driver fails to link without the backlight support: > > drivers/gpu/drm/tinydrm/ili9341.o: In function `ili9341_probe': > ili9341.c:(.text+0x578): undefined reference to `devm_of_find_backlight' > > Fixes: 3fa0e8f6f960 ("drm/tinydrm: new driver for ILI9341 display panels") > Signed-off-by: Arnd Bergmann > --- > drivers/gpu/drm/tinydrm/Kconfig | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/gpu/drm/tinydrm/Kconfig b/drivers/gpu/drm/tinydrm/Kconfig > index 7a8008b0783f..16f4b5c91f1b 100644 > --- a/drivers/gpu/drm/tinydrm/Kconfig > +++ b/drivers/gpu/drm/tinydrm/Kconfig > @@ -23,6 +23,7 @@ config TINYDRM_ILI9225 > config TINYDRM_ILI9341 > tristate "DRM support for ILI9341 display panels" > depends on DRM_TINYDRM && SPI > + depends on BACKLIGHT_CLASS_DEVICE > select TINYDRM_MIPI_DBI > help > DRM driver for the following Ilitek ILI9341 panels: There was some work done to make backlight optional, but I see now that it failed to take into account the possibility of the driver being builtin and BACKLIGHT_CLASS_DEVICE being a module. This is from include/linux/backlight.h: #if IS_ENABLED(CONFIG_BACKLIGHT_CLASS_DEVICE) struct backlight_device *of_find_backlight(struct device *dev); struct backlight_device *devm_of_find_backlight(struct device *dev); #else static inline struct backlight_device *of_find_backlight(struct device *dev) {     return NULL; } static inline struct backlight_device * devm_of_find_backlight(struct device *dev) {     return NULL; } #endif Anyways, thanks for fixing this: Acked-by: Noralf Trønnes David Lechner do you apply this? Noralf.