Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp1140553pxb; Sat, 9 Jan 2021 08:49:08 -0800 (PST) X-Google-Smtp-Source: ABdhPJxwN8rqKD6FIgszF4yBwD7zh5ir4UhBeSungwH4qTsi+PwvIBWPcBZblNau8xuza+sbuSx2 X-Received: by 2002:a17:906:fc3:: with SMTP id c3mr6282404ejk.474.1610210947828; Sat, 09 Jan 2021 08:49:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610210947; cv=none; d=google.com; s=arc-20160816; b=n3LughoLabN0yBTGBAONPPxPJpsAiT8OTXqbF3lM9O7/YYeaemv5XCAwve6CBS+JoB UvzEmnNQSI75BT/oWzVhtzjZCfCtr5jtiVx/a1SgPT0NUmOYAWW3YlBOMQGNPnLsA+fQ VvKpsgsvqAVPqnYa/kduqmfJBG7IhggnpHqc5V815Ilr/qK/ZQKZ6IfXa2sqwE/9zrI8 RPiotcHgFDGWk6ITUpfwSwM8uwXTKdRmTjZ8Ladyr4om6vAvEmayQuwklTVp+KcxhBjw 7366XpEADMd2+LHj2sluauMlZb+66zW0dzlPrYaTl1Rl8ztBkR+U8eifjFCNIZaNepQ0 VEOw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:references:in-reply-to :sensitivity:importance:date:subject:cc:to:from:message-id :mime-version:dkim-signature; bh=H3q5O326nwgrnNLLg0lVrM2vx5+tI0j+mtoAt9hgC+E=; b=kmxqqX070bO4KVt0hWbEOP+vDchbjVDws9Z7M8h/6EcMqHWGA5FaBBrN68Bd8ePWES hEv0ygucG/RcH1aJPCwgXTrES0OLjiWZWdM7aX2T5A9NbG/cfGzMfX+ZhxtC0fkqkDG2 6tI7RJdTm5alrgfnprB+ygSJI3ZjYaQikB341VExYC4L7bcMrByLnOD4yoTLmfED1oqj 5PoKJS71/jarwWrh/+GA0/h3ezqpTtLjZlD2zoX7nCl8SLYu1I1aTBNHhRNzG9F3hn5a q//rfi49NiJhq+iLWssjDxB+oG+rrC0wMiYSrqLhxecCMcEAjyPIhRFr9f6LFXwugjAI F3iA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=isZU4laO; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v18si4657203ejb.13.2021.01.09.08.48.44; Sat, 09 Jan 2021 08:49:07 -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=@gmx.net header.s=badeba3b8450 header.b=isZU4laO; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726697AbhAIQqv (ORCPT + 99 others); Sat, 9 Jan 2021 11:46:51 -0500 Received: from mout.gmx.net ([212.227.17.20]:37197 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725970AbhAIQqu (ORCPT ); Sat, 9 Jan 2021 11:46:50 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1610210693; bh=t0xRRcpfx8CmUrj1y7gu9ysNwQrKAhLNtKpvWeALyxg=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=isZU4laO2OzDxt/KjIPRBHbCwFG/mvKeOM/aQmd0HSRJ+Ue4qpF0j86enCX5h9tbW /WREGJNburZ9MANkfdYomHfEFV79EjXaj93Wwl5K3pkiVP0/lW6963aiuCwyKyXIXf n4jF8Ic7NM6YCAFBGm7KIEgpWdIQ79Gr+iurp9mM= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from [185.76.99.44] ([185.76.99.44]) by web-mail.gmx.net (3c-app-gmx-bap17.server.lan [172.19.172.87]) (via HTTP); Sat, 9 Jan 2021 17:44:52 +0100 MIME-Version: 1.0 Message-ID: From: Frank Wunderlich To: matthias.bgg@kernel.org Cc: Liam Girdwood , Mark Brown , Gene Chen , Matthias Brugger , 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 Subject: Aw: [PATCH v2 3/3] regulator: mt6323: Add OF match table Content-Type: text/plain; charset=UTF-8 Date: Sat, 9 Jan 2021 17:44:52 +0100 Importance: normal Sensitivity: Normal In-Reply-To: <20210109112612.1221-3-matthias.bgg@kernel.org> References: <20210109112612.1221-1-matthias.bgg@kernel.org> <20210109112612.1221-3-matthias.bgg@kernel.org> X-UI-Message-Type: mail X-Priority: 3 X-Provags-ID: V03:K1:O7Fhu6dDxIRzG1n/8s2FEsKtZnQCyjn3b4/8rlrNW+9i+pO5gq9bgwt5ga3BGG+JtOzn7 LHtoA0I17+bYi/JQVNr3an85fGpHuPJXYYgOT02FBAfxtFzZ/UqtohgY/5dJNjKHMmIFWoTiZP9/ lw16wdkYauCkKtEROtwcaIuFeBR8vTllcSQgAMXAWPGrLrgUA5n2ejtdWhhmJwXnQ7oRTm1JbwtG 52QYyzeIZ0AT6XbYLrue8dxc+yUOrgL7lGMPSpJXlQKrcsn/l0SLQMxRvWfeQj9tz8YMABPS8Yr4 /I= X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:yx2Tj72ja58=:psqyfhGbFlzDpc5LVeng/W cEqpwE9wpFHa9LDMqu8AdfPO2d/o8Mi/UWCW0ldAsAVrXeQJMZPbq6sLCiwzH/E9LPWb2MmkL gug2MsIth6n5V/SkAlmeCryQrH+Wxlw3j3l5LH5hVNIbsLhGl76+vhvEE9M+WEji/im8s6DBl j6hJ3uZ/qNdEB+lC8B8pkaaXFnMQrLXaMHybmrnIkV6wkJRJLvrYwEOq+B8hlnLYfaqqHSy4Z CeOu8J9Im6Mv/wMZMwioizTrHnnYRzUxSr1yHcGrpLidh+KNQoHj2kVUxCnVfFMdG4ZaD9iZp smLWkZp9fbxfYoHr9vv+Z7IeA27daqQgVI4cTTv4GPz1TaZKCIR0rCu+Dqn5zWbDskfZHpjuQ 85alAOcywdF6tqxEUgNm4eD3WDNwrx09R/JXGETldge8uWa+ZK+QG+Vo52HgNfdcZmhheI1Jc keszR396xFVjWGv9CtpJ/3X2vh4YEI/6F0IfWnIJQUWsqz32CsAeuJyhES+Ei2WkBX6uW6se1 Gd10QoxML94KVVN4g3tXkfVnyB/o1fv677LdCdwqjW+18eQtbtJP29dslxlurR8HLPqxf+oBB o4KIYRo/05QwQ= Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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_platf= orm_ids[] =3D { > }; > MODULE_DEVICE_TABLE(platform, mt6323_platform_ids); > > +#ifdef CONFIG_OF > +static const struct of_device_id mt6323_of_match[] =3D { > + { .compatible =3D "mediatek,mt6323-regulator", }, > + { /* sentinel */ }, > +}; > +MODULE_DEVICE_TABLE(of, mt6323_of_match); > +#endif > + > static struct platform_driver mt6323_regulator_driver =3D { > .driver =3D { > .name =3D "mt6323-regulator", > + .of_match_table =3D of_match_ptr(mt6323_of_match), imho check for CONFIG_OF is here needed too, else mt6323_of_match is refer= enced but undefined > }, > .probe =3D mt6323_regulator_probe, > .id_table =3D mt6323_platform_ids, regards Frank