Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp752583pxb; Fri, 8 Jan 2021 18:15:15 -0800 (PST) X-Google-Smtp-Source: ABdhPJzCdrI2vi50SnZUJbwMobxjoHwoLn6CXLnqot5utJkDA2tOqGu6Mw2tJt+4UpS0Qq9Usnfk X-Received: by 2002:a17:906:4e45:: with SMTP id g5mr4336664ejw.391.1610158515234; Fri, 08 Jan 2021 18:15:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610158515; cv=none; d=google.com; s=arc-20160816; b=JBCWT1dkKa7Jj2yxZ0dEAmPVSo9spEgWamN+smRN0n923D81RLxhZbhH2xjGtCrpgN JLpeygwTZX25H7dT57b1/qNSsrURqd9F6iiru9c6vRzmBdHV1BW80A2MfUXexpWmFiJa ALEsM9izeIvf+0z9bYAgNBUEjFEUOtKPVL+iPvBJsYkOT4a5r3ZLE/ZIXNOKh/KxrxGO 6UadQgB7Oe8ZLTrCbjtGPLMgXyrxgJ0JJ5VXwhEufoBFo3f5AA1U8RQ9t8pCj7xXPIBb HIrHBtR78LBIok4N5Bg4GhKqemqqaczDYyJcwwcpnMNj3N1/zHWCusyUOpMhPeEh4zlY VGfg== 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=eq1jRf2J7WGfjBz+rqP2Qhq4ExDsOyR7GmjpF4WoRjE=; b=H0or2YMchIh5hTW1Q7v/yFjJZIHcs0u6/Y6pjJ1qeoOnzL2FO4CKUIFRdXIkoZNUm4 rkx93pbiH0FP2SnYemykVeU/DlJ3PTf1grHVeTsAzBYRJ3dadihZrwmyxP9LJmdgCQc6 FUApUSBjmgylcnozvEAc+p28kANav9R9oUwlagGF83EshSqRvjVsEXu9Mi4gKvlxEOyK MTJcG+UmpdAInzaqZ5chq2dFok6QJLMiWZlcdidfCfvMIMMpENKROqAsLKTj60JsBj6/ +UvnLty2tLrwqnjHVF3S1xsJnfpDIbwcunVrUxu9FS48lJxIMr1wkhfeoJ1rRy1fOmGP c7Ew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ZcNUrJuD; 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 hb44si4262233ejc.150.2021.01.08.18.14.51; Fri, 08 Jan 2021 18:15:15 -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=ZcNUrJuD; 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 S1726618AbhAICLs (ORCPT + 99 others); Fri, 8 Jan 2021 21:11:48 -0500 Received: from mail.kernel.org ([198.145.29.99]:42286 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725872AbhAICLo (ORCPT ); Fri, 8 Jan 2021 21:11:44 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 1D56F23AA3; Sat, 9 Jan 2021 02:11:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1610158263; bh=t0IHG7i/rG5q0kGjKDEB6BMqF7jMIE84um+5xi949Sg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ZcNUrJuDaDmSymaVrfjWxRc6dQbT/apZ7uMQHnllurftkrwnUMfSWCkCEpA3IoeFz 04mojUPlpllMMbu3qOT5iHQYrKBSmfpgw0tOvdrnWncb6uKN7XR6oVThIeOBEi9PBH uVazrZsTCzQ+cKriSdF2BQebHCTmtacSU8H/ljUc75qsabLFM3CE9vA31NNQy8TZF9 mRSaC3uj/pQc5QraBN5zFVyoeGJyRm/bzthR9v14Ih7tZ8OYH0O28znjsOPfRP5qPn /frNb2HaXJKavuZiDAlaCuStAe1lNIwTHW1pjfcjTNwTLyqlyMshYl99UEnPT7Z/+x uJg4a0HkHZ8Kw== 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 3/3] regulator: mt6323: Add OF match table Date: Sat, 9 Jan 2021 03:10:46 +0100 Message-Id: <20210109021046.21907-3-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 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. Signed-off-by: Matthias Brugger --- drivers/regulator/mt6323-regulator.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/regulator/mt6323-regulator.c b/drivers/regulator/mt6323-regulator.c index ff9016170db3..b3d84e95f051 100644 --- a/drivers/regulator/mt6323-regulator.c +++ b/drivers/regulator/mt6323-regulator.c @@ -406,9 +406,16 @@ static const struct platform_device_id mt6323_platform_ids[] = { }; MODULE_DEVICE_TABLE(platform, mt6323_platform_ids); +static const struct of_device_id mt6323_of_match[] = { + { .compatible = "mediatek,mt6323-regulator", }, + { /* sentinel */ }, +}; +MODULE_DEVICE_TABLE(of, mt6323_of_match); + 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