From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-19.2 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5A14CC433E0 for ; Sat, 9 Jan 2021 02:11:42 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 29443238EC for ; Sat, 9 Jan 2021 02:11:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726518AbhAICLl (ORCPT ); Fri, 8 Jan 2021 21:11:41 -0500 Received: from mail.kernel.org ([198.145.29.99]:42264 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726078AbhAICLl (ORCPT ); Fri, 8 Jan 2021 21:11:41 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 0DC6C23A60; Sat, 9 Jan 2021 02:10:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1610158260; bh=J8F9GtnOw2YbAF+emi5C/TcN+YhRipufocVzCIIaAFc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=jNxX+FGCIjAzQrWyPmXiZ8aIr1rFK2coB0JV+SW1iZx/WddvGjrji9i/XFkMHw40S 4Nj3NiqNvnAa+AG/gA61O0CDpFq1kuAqWRf4HnEerjnKyNZ1Eewkm32a9ccNkDKpv2 yZPxjQKo4y7dbe9C2Zw4xwWZGxiK1o8FI4oaFPlu3p4938ZLtw8eyxybttHYg77nQa nh8//v2RGfizZ0gX8n7zd7Yw0q3rPgdh6G3uvRZrUvuM/7XK80H3Lukd++Mqs7vAeZ KKXi+0+Dx+Nq1nRNRhEhF59SjiaFN1k4a/7utJeOeqgTrvHZsuLSHLD374JO2wNZ12 9C4oDVpiUp4dg== 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 Subject: [PATCH 2/3] regulator: mt6358: Add OF match table Date: Sat, 9 Jan 2021 03:10:45 +0100 Message-Id: <20210109021046.21907-2-matthias.bgg@kernel.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20210109021046.21907-1-matthias.bgg@kernel.org> References: <20210109021046.21907-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 MT6358 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. Signed-off-by: Matthias Brugger --- drivers/regulator/mt6358-regulator.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/regulator/mt6358-regulator.c b/drivers/regulator/mt6358-regulator.c index 13cb6ac9a892..6cadb6d4dfe4 100644 --- a/drivers/regulator/mt6358-regulator.c +++ b/drivers/regulator/mt6358-regulator.c @@ -534,9 +534,16 @@ static const struct platform_device_id mt6358_platform_ids[] = { }; MODULE_DEVICE_TABLE(platform, mt6358_platform_ids); +static const struct of_device_id mt6358_of_match[] = { + { .compatible = "mediatek,mt6358-regulator", }, + { /* sentinel */ }, +}; +MODULE_DEVICE_TABLE(of, mt6358_of_match); + static struct platform_driver mt6358_regulator_driver = { .driver = { .name = "mt6358-regulator", + .of_match_table = of_match_ptr(mt6358_of_match), }, .probe = mt6358_regulator_probe, .id_table = mt6358_platform_ids, -- 2.29.2