Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp1789960pxb; Sun, 10 Jan 2021 10:52:39 -0800 (PST) X-Google-Smtp-Source: ABdhPJznDBRSUCOs31JbnlX0IQIHMiopCG55InqhuAC/wHChTtmAqrdwBo42c5bqM4hNIoNkI48m X-Received: by 2002:aa7:d3d4:: with SMTP id o20mr11865461edr.190.1610304759674; Sun, 10 Jan 2021 10:52:39 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1610304759; cv=pass; d=google.com; s=arc-20160816; b=nDDMXmeE3aFE4XB+YLdl3KkjQUBGD3AjPBe4vnGXk+e14Ns2FI6czrVD8u+m1NO5W4 rcTovwChkuxoGjaLbyLmVERPWj8pWMPOdUPHrkeCN0LO/I+A6NtPfpmxzHOxl8C/6Bgc vxqIa9qJz4ASVpuPBAE5q3+3vuEhdauWqElIQVPx2IO/o1XY8V7FLKzq3h7c+QGhQr46 wu3e+PFduGA4rUQLTJaON1RBOtserySSw11RgRULplFEmyUbtK03FOPlQnCSGaycPqnK 9hqYfdIF0rlICF2wlqwPZe/otYIDlk2zIEssb/MpZYc1I644G5HPJ+j7UN77Y3/nGb6B Pgmg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :content-language:in-reply-to:user-agent:date:message-id:from :references:cc:to:subject:dkim-signature; bh=WVlwN5RgbgYmqrLu2qRybVFfUTYl0f9PNRwvNS28xQ4=; b=dZIYvrpxczyxG28eNPSaSGXVG6+TfzytdmEAptyhybdq7oRbjbCrBff6C7lH4QfYOd T58Nk+ciD6F8iKdOe5tmZfttbbCVZGB1fUftH8vlPv8hE9mtsexSQV3Ug3F4eJ+8tBfw CjlLjlQwMp18KMf0yLw33DFtnMpUONDgan4dXle1ZPfBl9MWcAPhlAqyqsliIPy6AchZ cs8okjbCAMZKM8xq3buwCHEPgM7BUJd20xYoVBYzF8bmx0S5EPaxWAFy5KdalIygkT1A t111EmuDUX6n0JYRf7WflOmUlfE/1gxOIhKchG8adJbdTLpTA7imyfg6tG/ugTJR/BhC f0+w== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@suse.com header.s=mimecast20200619 header.b=CR9pEsa1; arc=pass (i=1 spf=pass spfdomain=suse.com dkim=pass dkdomain=suse.com dmarc=pass fromdomain=suse.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=suse.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k7si6299552edi.32.2021.01.10.10.52.16; Sun, 10 Jan 2021 10:52:39 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.com header.s=mimecast20200619 header.b=CR9pEsa1; arc=pass (i=1 spf=pass spfdomain=suse.com dkim=pass dkdomain=suse.com dmarc=pass fromdomain=suse.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=suse.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726742AbhAJStR (ORCPT + 99 others); Sun, 10 Jan 2021 13:49:17 -0500 Received: from de-smtp-delivery-102.mimecast.com ([62.140.7.102]:51848 "EHLO de-smtp-delivery-102.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726346AbhAJStQ (ORCPT ); Sun, 10 Jan 2021 13:49:16 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=mimecast20200619; t=1610304488; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=WVlwN5RgbgYmqrLu2qRybVFfUTYl0f9PNRwvNS28xQ4=; b=CR9pEsa1E7RSwLW3YXiEgaZx0+iF0kBzBSWdrSkcxblJYlsS1m9jq5rvsUAmgitlCOSi4I ghj0NNBjLstcpWb4EwQihUgnyH5in2yfzObz5tjbWZ4T8MhAruc5GMt3mezTI40OaELIPh yTJ4dJMIekTZHp1CjWVX+SrvlXF8Q/U= Received: from EUR04-DB3-obe.outbound.protection.outlook.com (mail-db3eur04lp2051.outbound.protection.outlook.com [104.47.12.51]) (Using TLS) by relay.mimecast.com with ESMTP id de-mta-20-0Zegfz3gMZG8B4xunLqtIg-1; Sun, 10 Jan 2021 19:48:06 +0100 X-MC-Unique: 0Zegfz3gMZG8B4xunLqtIg-1 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=l01wr7a36HalyY2N2yY1G5LMFvxtQ80TWcKBJp4BqmaexWURI0RAKJtnf/IC7WmEIB08iPHZameoy8DPRZ3cpOVtANBtjz3cPeftqV61JKvom6F1poB3K6ku3PgpbM04MbQhhMYEWYyYFixiZbSCxCChwHgo6tVuxf1Tp8UIMLBr5L+F9B3JjnEUcAf3/CcojosiS9mUgiQ+WG7I8DRK9f/HQza+Kgwe+Tbyj/DA/ZuyeXCHbu7ckELiSgtUI/v4+w7yBWZ1Aln97PqqJYyO1EhdP4m23psCTU9I1AvQ3p7wBSaZLgupmUs0upPHAdJUEYg7jgS6c2qt2r1YnZWDsw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=WVlwN5RgbgYmqrLu2qRybVFfUTYl0f9PNRwvNS28xQ4=; b=CEJemCqtVmn9liqXkQ3T/xu/q3n9arYqepaLmViebBYk1Bg/lXItQOQHgFoZHblVQmJiMSEaSvI2w6Zig4AkXSnZP/VeNOL+CuxWrWTzSMiucRQ81xTMN+N7b8R7CrnLjs23+Ttpg3q9Y7DeTkap5OQjhYibI4fgrhXtHCM46Tak59Oc2yd5561d+JuzzXe2Wfk7KEMZyEwN++bOrgove9aEUtZJT/dtCXH/K5OteXrs5Xv9IpgPFlN4QaAeMbsmCEfTmv0kmtJVdJSHm8ISCvrHJR3D+r2k/KVJO9CS6/PnDFpGKlzV2o67/IErLePifOcrctVGeVy1DogNRp578Q== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=suse.com; dmarc=pass action=none header.from=suse.com; dkim=pass header.d=suse.com; arc=none Authentication-Results: mediatek.com; dkim=none (message not signed) header.d=none;mediatek.com; dmarc=none action=none header.from=suse.com; Received: from AM6PR04MB5366.eurprd04.prod.outlook.com (2603:10a6:20b:9d::19) by AM5PR0401MB2481.eurprd04.prod.outlook.com (2603:10a6:203:39::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3742.11; Sun, 10 Jan 2021 18:48:05 +0000 Received: from AM6PR04MB5366.eurprd04.prod.outlook.com ([fe80::58d1:4050:d882:3ca0]) by AM6PR04MB5366.eurprd04.prod.outlook.com ([fe80::58d1:4050:d882:3ca0%7]) with mapi id 15.20.3742.012; Sun, 10 Jan 2021 18:48:05 +0000 Subject: Re: Aw: [PATCH v2 3/3] regulator: mt6323: Add OF match table To: Frank Wunderlich , matthias.bgg@kernel.org Cc: Liam Girdwood , Mark Brown , Gene Chen , Axel Lin , Matti Vaittinen , linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-arm-kernel@lists.infradead.org, John Crispin , Matthias Brugger , Chen Zhong , Hsin-Hsiung Wang References: <20210109112612.1221-1-matthias.bgg@kernel.org> <20210109112612.1221-3-matthias.bgg@kernel.org> From: Matthias Brugger Message-ID: Date: Sun, 10 Jan 2021 19:48:01 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.6.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [213.195.126.134] X-ClientProxiedBy: VI1PR0901CA0103.eurprd09.prod.outlook.com (2603:10a6:800:7e::29) To AM6PR04MB5366.eurprd04.prod.outlook.com (2603:10a6:20b:9d::19) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from ziggy.stardust (213.195.126.134) by VI1PR0901CA0103.eurprd09.prod.outlook.com (2603:10a6:800:7e::29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3742.6 via Frontend Transport; Sun, 10 Jan 2021 18:48:03 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 833a1757-7520-4d60-b579-08d8b59843ec X-MS-TrafficTypeDiagnostic: AM5PR0401MB2481: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:972; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: RYojoK0xJ3L7eCyCS1HVBe2Wbl+yqGW4sWFBsv6PfUXnFhzLqBw6w1Hss8y03dBVWndb1W+VhrVOGCQ1t6djFhe2l9UBK2uTjgyJxvm/mXfAAQ0IoxWxQ7gnPUwMC0Q/m/pwhlkE58kr3v2bX7nnEfkihbrN4Gsb/jSQIx3gQf4DWLYTaeUb6COEjgQnkSbkJNdz0smyQui9NNfcjhshhmH7U2SJVfWwvME6gAn0IAlD/k1GMxdc6BJSAdFsnH5G2rqu+otPqXZWlNF8QE9s1PvZ1Fszkn4oVUKNt/WtJVmPNhB6eLWuhZVbgmbDX5srlct8tjRC7/XR8BjZfpWt6oq29iJA1N/gpBPG7LQlVTYDj9hW2uNOdi02OSJgLY+qb9xPSQlmCAzPHDxsO55sW3wgtjDp+XMdhrW5rTbPXUn2erQ+wKQRUwM8L0OqlewP7Tm1sYvQWbuHBvYZY0Ndk22NsLSj9YquHuWffS3LymJhhatqsNKljusJh8XcKElmBA1ZBUGBAI2AVqWFWbIRxUsvWw/H7QvaLH/wB8RSdDg= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AM6PR04MB5366.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(136003)(366004)(346002)(396003)(39850400004)(376002)(8936002)(16526019)(186003)(4326008)(6512007)(31686004)(8676002)(6506007)(956004)(2616005)(53546011)(966005)(66556008)(478600001)(36756003)(66476007)(7416002)(66946007)(52116002)(316002)(6486002)(2906002)(31696002)(5660300002)(26005)(86362001)(54906003)(45980500001)(43740500002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData: =?utf-8?B?OUlFd1pPQTBPNXJSMVhxVmdmbHVUeWVXRjVOdVEyTWxpMUZMZHdjVkd3NlBP?= =?utf-8?B?VmhhdnpRREtjSW5Vd0RnQWdCMVdOSFlHQmhBNG8yZWYxR1ViVVBtdWtiNEx3?= =?utf-8?B?YUtaS3l5WW1QWkV2anRqNFVqQktlSzNZbEpDSEdZKzhETTBGU0lzOUpnUFhE?= =?utf-8?B?a2FKMHBKaVlFa2dwMDRvV2lWZzRWTmg2WTBLMjZ0akpGTzVSZ1Y4UGZDaGxI?= =?utf-8?B?SWFkUkp5SWx0dlJXcFg3aG5BSW56cmkxSVNxQ3dPZTU1eWF3K3F0NDhPWFJ3?= =?utf-8?B?REJkdFI4NHZFSk8vZ2ZqVFRHdS9ROWhycXJxTFZIYmlHSkZJWnltcmc1bGV2?= =?utf-8?B?MFcrTXA0QmxQT0JVVFoxWiszZXY2YXAyVGQ0YXl0NnlEOGsyQ0VTYzdEeFZi?= =?utf-8?B?WE1HL1NiSCtvVGlud0J0RE5vdm9Id2VJa3VqUDdaNDhHWnF5aGg0T3NoN24y?= =?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riginatorOrg: suse.com X-MS-Exchange-CrossTenant-AuthSource: AM6PR04MB5366.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Jan 2021 18:48:05.1648 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: f7a17af6-1c5c-4a36-aa8b-f5be247aa4ba X-MS-Exchange-CrossTenant-Network-Message-Id: 833a1757-7520-4d60-b579-08d8b59843ec X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: zZliIjZ6WWnyjg0VtK4cPvbZtz0zvR21U8FB4x2w6IGdfE+OGwdDuONgJ8jm9eSCztd/E1kiYRaOneG8/D2t1g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM5PR0401MB2481 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 09/01/2021 17:44, Frank Wunderlich wrote: > Hi > >> Gesendet: Samstag, 09. Januar 2021 um 12:26 Uhr >> Von: matthias.bgg@kernel.org > >> Changes in v2: >> - check for CONFIG_OF >> - add Fixes tag > >> --- a/drivers/regulator/mt6323-regulator.c >> +++ b/drivers/regulator/mt6323-regulator.c >> @@ -406,9 +406,18 @@ static const struct platform_device_id mt6323_platform_ids[] = { >> }; >> MODULE_DEVICE_TABLE(platform, mt6323_platform_ids); >> >> +#ifdef CONFIG_OF >> +static const struct of_device_id mt6323_of_match[] = { >> + { .compatible = "mediatek,mt6323-regulator", }, >> + { /* sentinel */ }, >> +}; >> +MODULE_DEVICE_TABLE(of, mt6323_of_match); >> +#endif >> + >> static struct platform_driver mt6323_regulator_driver = { >> .driver = { >> .name = "mt6323-regulator", >> + .of_match_table = of_match_ptr(mt6323_of_match), > > imho check for CONFIG_OF is here needed too, else mt6323_of_match is referenced but undefined > No, of_match_ptr already takes care of this: https://elixir.bootlin.com/linux/latest/source/include/linux/of.h#L998 Regards, Matthias