Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp977249pxb; Sat, 9 Jan 2021 03:31:25 -0800 (PST) X-Google-Smtp-Source: ABdhPJzsk0nL5eTi6TAv5RMOLYae3d5dC2W48DfIKH4xH2jmw5bfJmy3apxeJe2UlaX/ehTLORmu X-Received: by 2002:a17:906:3a99:: with SMTP id y25mr5209374ejd.349.1610191884797; Sat, 09 Jan 2021 03:31:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610191884; cv=none; d=google.com; s=arc-20160816; b=kLadFjhKZAwScQ6txaMnWvwXVAVknv0zmjdK0oEj0jz9VVkRn8kUzWM55F5KxdFneJ V6ypzJKU6vuIb07TNaDWA8S7AiBGVq3aTdxtGABdB6Khx5DeKdUw9xhc1Is+TWxHGkkX sikqsPc1C0NCHTHGkp+ySxCVC2XI2tWQ1Vz9gGjP5rxZxPwXAc63druqg0C3jQv9ZL0F cSoM225tBQSNlPS7NhPH0UODRka5XuM78KofMWcQUMR761Ar0HWuP0HhZDeh2rQc2Xow 1DZC9lRHo+Prz+6m4CNjG46zwheXfDcU6qMLJMDOhBRyf0CSoEbxe6Wmz0Bx5kHZRfd4 Dcjw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=0kamTjK/kEcmmvu1sCuUm3vs8rEz484yiKFlJ4kSakI=; b=HlORavHgBHtoMVaWyPsg1ZExpyHrCEjXwzXJBWwQx7PpucUmOKJBrDQMtQPz4voF0y gOTP3cbSmrVjsqUjx9hDRPuQGbhgO9eUmcNZkPaVCUwg27SGHwrork485GaZahSXHDdD 2FwSRo1SNlVoH9zP5QVmfaG8IouOfGfFUxgwhsXc4MydoJuTrH5KumTPDCQ6cwOgNZiU bucDEbNwoorhjrCjojcyoe6M2ip3i9AZiP7iOgJ9WGLS35sViCQCi+bYHPVrFUOcT0g3 heD73U2rXJaCEtIGf4ZqBDabK/4m3hOG5HuvhSZt6dErCdaLZAzFLSocrDsay9u+SPlg bKpQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=az0G+ArN; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id kd24si2645972ejc.530.2021.01.09.03.31.01; Sat, 09 Jan 2021 03:31:24 -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=@kernel.org header.s=k20201202 header.b=az0G+ArN; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726301AbhAIL1I (ORCPT + 99 others); Sat, 9 Jan 2021 06:27:08 -0500 Received: from mail.kernel.org ([198.145.29.99]:59242 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725901AbhAIL1H (ORCPT ); Sat, 9 Jan 2021 06:27:07 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 5970523A5B; Sat, 9 Jan 2021 11:26:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1610191584; bh=ZwGNlLT0V28L32lhKP8fkz8Phifx/G7ELAZXT2Co0Nw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=az0G+ArNGOjGqZkD4UYAEJr/rNp6bRSLJYMtRkLEmhGcM/oLASeNvOJLKUUDscvoE /mhE0gEiDhDaKl49MMjQa5gcXnJKSUv0XF2euS8FLfg8Bh/G6S+/EHQ2xHpVfcy1LO zvRFuiMIGqdZosB+7V76saB4vS2nR+SUnFEWi0TDerr//3tPc+vb+vlIjYSElowKOX +QXuI9mG+9xKCiZkhnz1WApJA3aaJsdrfUWL9oGt48dWNtVJoDcALPqbq9Y710ik7q knKdYgIqzg+bzRSaf8DwWjZCKq+uykYjSpU3YDaJsZysVfpWQf5kZeIgm/Vy90bsfB GqvidVQ5MB4sg== From: matthias.bgg@kernel.org To: Liam Girdwood , Mark Brown Cc: Hsin-Hsiung Wang , Axel Lin , Chen Zhong , Gene Chen , linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-arm-kernel@lists.infradead.org, Matthias Brugger , Matti Vaittinen , Matthias Brugger , John Crispin Subject: [PATCH v2 3/3] regulator: mt6323: Add OF match table Date: Sat, 9 Jan 2021 12:26:11 +0100 Message-Id: <20210109112612.1221-3-matthias.bgg@kernel.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20210109112612.1221-1-matthias.bgg@kernel.org> References: <20210109112612.1221-1-matthias.bgg@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Matthias Brugger The binding documentation mentions that a compatible is required for the MT6323 device node. But the driver does not provide a OF match table. This way auto-loading is broken as the MFD driver that registers the device has a .of_compatible set which makes the platform .uevent callback report a OF modalias, but that's not in the module. Fixes: 2fdf82923618 ("regulator: mt6323: Add support for MT6323 regulator") Signed-off-by: Matthias Brugger --- Changes in v2: - check for CONFIG_OF - add Fixes tag drivers/regulator/mt6323-regulator.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/drivers/regulator/mt6323-regulator.c b/drivers/regulator/mt6323-regulator.c index ff9016170db3..646742d4db74 100644 --- 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), }, .probe = mt6323_regulator_probe, .id_table = mt6323_platform_ids, -- 2.29.2