Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp752865pxb; Fri, 8 Jan 2021 18:15:58 -0800 (PST) X-Google-Smtp-Source: ABdhPJzsQla3gbhOCu6g/OopUWg9PBJelQ2wFgzR5i+xH8hVewOCor1v/3jarE6g+1dikcLyGZqc X-Received: by 2002:a05:6402:318f:: with SMTP id di15mr7176289edb.237.1610158558171; Fri, 08 Jan 2021 18:15:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610158558; cv=none; d=google.com; s=arc-20160816; b=KVsulmjekceQjK8qIurOQ8wQ77d2u2krzn9ne9XgQXaWKZ9c2SVNLVRLhySH2kzbHO v2iIdiQB0+jl6ueDu6/WYbu+jBOYOVb64Mav+dFTKfzfv7CWTeVLAv+g+1zl7GeqhHdf sLq36rsQQCHa1R2C5sGGoey1f0/HrdBuveQnv8RSyVTQ+ZPYfqQPeq7kuce9xmZ7r/Bm 1yUDwzCLB9MByvI+J0qxvtUzHiOhIIad00wqR3Ishrmbwlf3trXaHl1pCSnL+STc2K5K 9kj7/8Sw54nkhKpThYjKXPG5d6c2ThJhFxlQhzY9+WBC/8Nwcq24HK8z/fWZMKVaWHY5 rHiA== 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=AiNVVspuiPC+Doya48xXSC/tx3NlLLkF48VBDVN5Vxo=; b=Nnmf9O2Dbavpd/yxJBOPtShc9+/ZKs34T/WvW9H1EmTfIJSwWy7gYaLPZ1bQadRzlN 04+XFryOaWybGMPN/uJ/EpWSWNZuFEawFvK6jz+ozaNcL0/RXCk3S1kYMFQFo5wJnKlh PlV7g/hgcDQ63KRKTNC0vY9X/1vH060WYGPTLut0XsyZHvKN6pX9DuPLKoGZ8Jf1xwle ti/ImMwHahGdbvmu0aU5WGZ4AW27fExfze08woXeC1qm2ZZObZG3HZzZAxYwT1t7PJCk RjhmGS5HZwEEF2I1fG5zxETXB+tMwci/U38B3qlVJpA1h9yqBTPLrstTn9lmaFnNwg1C 5yGw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=jNxX+FGC; 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 r26si4227213edi.245.2021.01.08.18.15.35; Fri, 08 Jan 2021 18:15:58 -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=jNxX+FGC; 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 S1726443AbhAICLl (ORCPT + 99 others); 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