Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 490C5C54E94 for ; Wed, 25 Jan 2023 08:45:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235313AbjAYIpO (ORCPT ); Wed, 25 Jan 2023 03:45:14 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49386 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235483AbjAYIou (ORCPT ); Wed, 25 Jan 2023 03:44:50 -0500 X-Greylist: delayed 417 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Wed, 25 Jan 2023 00:40:17 PST Received: from forward500b.mail.yandex.net (forward500b.mail.yandex.net [IPv6:2a02:6b8:c02:900:1:45:d181:d500]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9329E53565; Wed, 25 Jan 2023 00:40:16 -0800 (PST) Received: from sas8-92ddc00f49ef.qloud-c.yandex.net (sas8-92ddc00f49ef.qloud-c.yandex.net [IPv6:2a02:6b8:c1b:2988:0:640:92dd:c00f]) by forward500b.mail.yandex.net (Yandex) with ESMTP id D8C285F39A; Wed, 25 Jan 2023 11:33:16 +0300 (MSK) Received: by sas8-92ddc00f49ef.qloud-c.yandex.net (smtp/Yandex) with ESMTPSA id CXKlpM8YBeA1-MrFzk96U; Wed, 25 Jan 2023 11:33:16 +0300 X-Yandex-Fwd: 1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=maquefel.me; s=mail; t=1674635596; bh=Iu7kC5v6n5QYhMcI1r9TLZt9aPN3xDWmxLQey5H8/Sc=; h=Cc:Message-ID:Subject:Date:References:To:From:In-Reply-To; b=fBIvUJjSADfV0T9Xa3qtwCwY5pN92MQzDF2KhoQm8bB4GVPvcjCQdTPhlN5+qiUUr S++rIecuSu/WVFVwrkjTh15i/Y2pHGTsqHUIpPbGT0cUPmio7Pgj1DtNrR4hGdHn+d XfzmtzALnXKiv0CZBuhU/yIjEr71jRACDBQIBqOs= Authentication-Results: sas8-92ddc00f49ef.qloud-c.yandex.net; dkim=pass header.i=@maquefel.me Date: Wed, 25 Jan 2023 11:33:11 +0300 From: Nikita Shubin To: "Arnd Bergmann" Cc: "open list:GPIO SUBSYSTEM" , "Linus Walleij" , "Hartley Sweeten" , "Alexander Sverdlin" , "Russell King" , "Lukasz Majewski" , "Bartosz Golaszewski" , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/2] gpio: ep93xx: convert driver to DT Message-ID: <20230125113311.2aff259d@redslave.neermore.group> In-Reply-To: References: <20230117100845.16708-1-nikita.shubin@maquefel.me> X-Mailer: Claws Mail 4.1.0 (GTK 3.24.34; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello Arnd! On Tue, 17 Jan 2023 11:15:20 +0100 "Arnd Bergmann" wrote: > On Tue, Jan 17, 2023, at 11:08, Nikita Shubin wrote: > > > > > +#ifdef CONFIG_OF > > +static const struct of_device_id ep93xx_gpio_match[] = { > > + { .compatible = "cirrus,ep93xx-gpio" }, > > + { /* end of table */ }, > > +}; > > +MODULE_DEVICE_TABLE(of, ep93xx_gpio_match); > > +#endif > > + > > static struct platform_driver ep93xx_gpio_driver = { > > .driver = { > > .name = "gpio-ep93xx", > > + .of_match_table = ep93xx_gpio_match, > > }, > > .probe = ep93xx_gpio_probe, > > The #ifdef here is wrong and will cause a build failure because > of the unconditional reference to the variable. > > Just remove the #ifdef/#endif. Sorry about that - i remember that i should drop it everywhere, which did for all but ep93xx-gpio, i am dropping match currently, as it will produce a warning without dt-bindings documentation, it will be introduced together with the rest of series. > > Arnd