Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp976061pxb; Sat, 9 Jan 2021 03:29:10 -0800 (PST) X-Google-Smtp-Source: ABdhPJyO/0oMGpg1eKox18BOhLQKile/OmoG1c7Jv7FlW2qtoFzVPJCi032YHcHzXQrv1lGircLU X-Received: by 2002:a50:9f4a:: with SMTP id b68mr8146563edf.296.1610191750168; Sat, 09 Jan 2021 03:29:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610191750; cv=none; d=google.com; s=arc-20160816; b=XjIDRx9yjcliMQnSmZ9SDoT4dlDq8uP/E2L/ZhYdr5i/QAUmEzOcd2fOmjZakxm5G5 faiXXn1tMTLR3kkiZiNGvcEq26BWfvVdNKUCPGhi6u4KMG+SMWAZ/1TwIhgCYbVG3yQB C7butLq/hxX92hZXXyaz2Y7uVe+8VtsT0lQsKOHnXZpkAWWtAnJMZ/YWzGT6RAO1Lso5 /7dtDoo9unwW1XPlFjq9CBs7rJGkoD1h5ot5c7dL2d0zK7MQ/rrDKucnwiHvVTKFPz9n JGkZ5OZj+H3aVtWOKyZDOv5seX8b65XAJlsHoYyGp43Akj1ZC5B9FcjEzlmEXflx8cC/ /SSA== 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=FB0YamNt2miguCZs4A/Sx2z2USY0OrO5vyKWFQxaegY=; b=yqEmITejnMrbn9CUuD6f1cfoDA/x4d8EDAqICxbFeVd92rtHohYBWqlhty8n0XN9sV eBmT92ga/p8okfoPsRzIr7Sck0U3Fe2aJrWFTd4+cbCp/GlUKRFsS1XH7DR1dAeo9rIE NXPe4dc+0euRniunC0OYnQ8cGXIlPQgZSXarAL1b57tKJqFMhdhmKlhJ3vWyfRKlTt2L FgT57d7LTtbXabWvcX6Lkjs4jDTVy9ApmjnWqjCvHxPjuaxH52Q86MvoKo4Ke52FlU4F wSkf8KtdI/RqpeFahPpTxdnnOxdVZ4kXK29cMdQHQxQFPuCNZqYfDvm+KLvlswYODmVB CEnw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=k9T+k17R; 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 lg10si4606672ejb.120.2021.01.09.03.28.34; Sat, 09 Jan 2021 03:29:10 -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=k9T+k17R; 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 S1725941AbhAIL06 (ORCPT + 99 others); Sat, 9 Jan 2021 06:26:58 -0500 Received: from mail.kernel.org ([198.145.29.99]:59202 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725901AbhAIL06 (ORCPT ); Sat, 9 Jan 2021 06:26:58 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 3A57623A23; Sat, 9 Jan 2021 11:26:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1610191577; bh=STRnszbJDiMCR1dFP63SP57c2zY2aY54/4HtRf2kO0A=; h=From:To:Cc:Subject:Date:From; b=k9T+k17RJDnLBntW8S4DF+qQBhHYQSAiqhanrh8ksHpWU9FTRU2iTUnxiPSwZavFD kioJBXGt6eQyOZEhN7uYLN1scf3fW3FVmhJ8DkREypjE5H85OESszxJGd9JlbqyL9i /7mJLrHYk3SjMhsjteVYJ3AxroxVTCMiskBL9yIuviRq5fD4RxjSW67yWF/lGXfVTi c1e3TV9Gcg8rDocxjQAs0Ar+fUWYalzC0rG/bu7Jzc5Uv7asw3eIjwv7mrul579ZRF 4B9llOwaNNfDH5MQit+1zwWdkc33dgfZtzPTHe+8AkE3kR3yW/tF6Rs86l3usOSvI9 PvlRysC7G42+Q== 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 v2 1/3] regulator: mt6360: Add OF match table Date: Sat, 9 Jan 2021 12:26:09 +0100 Message-Id: <20210109112612.1221-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 Binding documentation mentions that a compatible is required for the MT6360 device node, but the driver doesn't provide a OF match table. Fixes: d321571d5e4c ("regulator: mt6360: Add support for MT6360 regulator") Signed-off-by: Matthias Brugger --- Changes in v2: - check for CONFIG_OF - add Fixes tag drivers/regulator/mt6360-regulator.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/drivers/regulator/mt6360-regulator.c b/drivers/regulator/mt6360-regulator.c index 15308ee29c13..f7b2514feabf 100644 --- a/drivers/regulator/mt6360-regulator.c +++ b/drivers/regulator/mt6360-regulator.c @@ -445,9 +445,18 @@ static const struct platform_device_id mt6360_regulator_id_table[] = { }; MODULE_DEVICE_TABLE(platform, mt6360_regulator_id_table); +#ifdef CONFIG_OF +static const struct of_device_id mt6360_of_match[] = { + { .compatible = "mediatek,mt6360-regulator", }, + { /* sentinel */ }, +}; +MODULE_DEVICE_TABLE(of, mt6360_of_match); +#endif + static struct platform_driver mt6360_regulator_driver = { .driver = { .name = "mt6360-regulator", + .of_match_table = of_match_ptr(mt6360_of_match), }, .probe = mt6360_regulator_probe, .id_table = mt6360_regulator_id_table, -- 2.29.2