Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp3028029pxb; Tue, 12 Jan 2021 04:43:30 -0800 (PST) X-Google-Smtp-Source: ABdhPJxESPxkaIPU934AZcXgZlT0JNKsncHBbTyTScK5f1Y709kXDxn+CcwM2lNCEjCCM1uFw047 X-Received: by 2002:a05:6402:1516:: with SMTP id f22mr3192164edw.382.1610455410742; Tue, 12 Jan 2021 04:43:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610455410; cv=none; d=google.com; s=arc-20160816; b=JYRvwqARnpOcqO5DsnyyI8mS7zhojcHiEuuqPRS8hntW4yuRtIvKUXVGzu7D5ce20b 7og3QXILluA5U5EJ1mFAUDWDIwYmBcfLvSiluhwxwYhbaMSTza+AGZSp2QUZChiXriBb A8lDb1x2ki+vOOu+IlyocxGVxTXl73pMtLzGiijyc1iMYy3W5QlwrQsEu6JmupPxQW0G pTuyDuUoov9rEU1SxfKofg/rV3p4nOOkSYoL2xsZvHVwUIpUp87f3jLj+p3Tj4sAQ7cW ko2GTZ98t4OkLoSgg/ecKDQOSohhaJZ1s8uuTt5RQzF62+WBWqj2PdOFRLL6el3HDE8J 8cdQ== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=/MM9r7sxlOlHCPxmF5LH8oqhpH9Fi8iLX5XJynd6R0k=; b=h5VPxT5mKvU+n4K1Im548AGa6ycwMWSlgylxrlbCf2k0LotnGxLkkKTPa/SJahWrf0 Nwk2dMRnku1yrnHKWhi96S9I7XLFJjpZ2/uuZQZoPvryQizSm5Q7PCUoGrkxmscS6+No TiqEetp7gkxUnkOFWb3NZsx25ow3nQ0OMfmo0e3yOsx3xONIjebaYthXvmbXoi0ZiZWc Hksa4PdP+JqXO8TywpniP44aFTsnC+UN8qTil4y/e/LWIN+tWlLNjAh/02fZkSi+IIF4 FQDPIKfO4+pL1obt840u+Z9NgUjtSoi/Ouh2icws4whi16IyUCx4OWsS267F+bRUszFP eOAw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=EdL2vLx3; 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 go33si1072709ejc.40.2021.01.12.04.43.06; Tue, 12 Jan 2021 04:43:30 -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=EdL2vLx3; 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 S2392938AbhALKHs (ORCPT + 99 others); Tue, 12 Jan 2021 05:07:48 -0500 Received: from mail.kernel.org ([198.145.29.99]:45738 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390366AbhALKHr (ORCPT ); Tue, 12 Jan 2021 05:07:47 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 28AB923107; Tue, 12 Jan 2021 10:07:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1610446026; bh=vdwmtnjiAMvviv26hOvbYr6Ik1Q7vOUq5UUucWiEegc=; h=From:To:Cc:Subject:Date:From; b=EdL2vLx3V3nkkoVBN39WY2dZbTEsYPI7oeFJd/yzffxDzveGK4Pq71jmTWpdGN98K ypzt/DPi8AkAYmHcyOR8Tz4Wmu5IBW5L4+V/PgXL3A4EdJeON8vq+3LyV1rQKxjmoW rjFkH274nXB8FGArd1sKLcfkVzjJFcURfchKqhDDzjhSvHQtGne19SG099O7YE88zP m2YhxHaQdzREhXVYlwkGvgtWLTU8W+qXjOFiLk86RfsaBSa+inZNPSBFw3ibTM9DHk X1Ks4jTEaI7IL/ZJ0yeShaemKro4DGilTDJPBciLV4jb8C+lU8PkhHjBRkDPbcYpN8 AEqJBDSWNPYgg== 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 v3 1/2] regulator: mt6358: Add OF match table Date: Tue, 12 Jan 2021 11:06:57 +0100 Message-Id: <20210112100659.19350-1-matthias.bgg@kernel.org> X-Mailer: git-send-email 2.29.2 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. Fixes: f67ff1bd58f0 ("regulator: mt6358: Add support for MT6358 regulator") Signed-off-by: Matthias Brugger --- Changes in v3: - drop mt6360 patch Changes in v2: - check for CONFIG_OF - add Fixes tag drivers/regulator/mt6358-regulator.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/drivers/regulator/mt6358-regulator.c b/drivers/regulator/mt6358-regulator.c index 13cb6ac9a892..a4ed19a54ec6 100644 --- a/drivers/regulator/mt6358-regulator.c +++ b/drivers/regulator/mt6358-regulator.c @@ -534,9 +534,18 @@ static const struct platform_device_id mt6358_platform_ids[] = { }; MODULE_DEVICE_TABLE(platform, mt6358_platform_ids); +#ifdef CONFIG_OF +static const struct of_device_id mt6358_of_match[] = { + { .compatible = "mediatek,mt6358-regulator", }, + { /* sentinel */ }, +}; +MODULE_DEVICE_TABLE(of, mt6358_of_match); +#endif + 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