Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp3027197pxb; Tue, 12 Jan 2021 04:42:05 -0800 (PST) X-Google-Smtp-Source: ABdhPJwWGyl4ujZI8mujwtZ2JYtKlvVMKxLEPuxr4sdUiB2LOA0hUAxtFSi6cSru1V+3BkY8gMAI X-Received: by 2002:a05:6402:1d0f:: with SMTP id dg15mr3212275edb.1.1610455325358; Tue, 12 Jan 2021 04:42:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610455325; cv=none; d=google.com; s=arc-20160816; b=fWk/jJLn5QLDoUm9Jr074TlokkSS4Lh5WTdI8n2B3bPc9yjjGQagBCGYl/km2mh/CO IdbMPKZqZ3795/yep6oo7AmYySQbjzZmykutnbgZuBqW1ptdAKkzy8Qx3Jxe3Hhqq03M 6nR6/L5KWMZdgD1qVa2bElIoOUP+Nz86ZyYqbvjjzn1HnvTLGGPaHGU7iToAeGB5FJWi d2VQ6EjQAOMTFJ5nuplmkvGKK6H1M1RkAgy8aT4Kn2YmOSzMAmL6HniLKBw7DM/6J3bk xN+IY3Ro/ExwXg1mplVpOu1i6YLotBOPmYZC+oRc/vQp+VKQ6WI4msLnje/SS9QPJ/KS 25sg== 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=Vb28I90V8SFch68amYzf+WkzCibXWTcCDuVuD2+US2w=; b=yvn+hdQyF+/KAwJWJhWQUcfImqg5U95zCuw4nGbj8NhXGbzq/H86nqEQ87aYJCrTGM WgrhRdwz9NWXgH0H7b1qoEPhABp1wVob/22e6RnZvOZX/vwMyLAKTv5bvVbcjVGh51Jd K6NEQ/lP0UjpRez+VZXy+2OPe3k9wAokrvwbzLH56ghBFy714xSw5pptyb27Y/kU1Okt +8Gk1EGby4AivoV8sG3TT4X9XMv1K4nPInEwxmOJcGV7+ALKdCNvD4dLefZPBcWzJBhu oe+A+goVGLfUT357WGTzTlym0bgv6Lb1QvpoR7KCfKJEnze9ieh48MCBfMvZXyUIJZVS bbeA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=l2tZgQRB; 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 d4si1080815ejb.594.2021.01.12.04.41.41; Tue, 12 Jan 2021 04:42:05 -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=l2tZgQRB; 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 S2392952AbhALKHv (ORCPT + 99 others); Tue, 12 Jan 2021 05:07:51 -0500 Received: from mail.kernel.org ([198.145.29.99]:45774 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390366AbhALKHu (ORCPT ); Tue, 12 Jan 2021 05:07:50 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 5DD922310A; Tue, 12 Jan 2021 10:07:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1610446030; bh=DxYt+mYx8c0tVX8A42/mQ1TijaD2I/tH+KiF9B0oDhU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=l2tZgQRBulvlz77JQDqCufd/2c7muJOQyBYXhyu+Xi6oENnqG708IwFP7GRYhSsOc RvvuhRdGd5h/f/dH0TOhwNTIPw1Ls9Hi8EB2dPMmUDbHybon4wz4SMhjxVAtUx9012 I64JhOpJieRbsE8B7SbKhDBsEW14h5w+XM9EOrKUx/u+zaQj6M1wO+g2GQFL7B6Q1J YLMnhmS9M5JuBftwTYZIo+7gD1LS7YCcUpjgw4Hjur2I7374mZ8BpdnBx/lzH4sMED Wl8EOj4BTxjcHYiB59i0K5Yxb/xxQhr7WqF3/9VLJprLFk1V454e4keJWERROvDaFz 4kamh0By/fgGQ== 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 , John Crispin Subject: [PATCH v3 2/2] regulator: mt6323: Add OF match table Date: Tue, 12 Jan 2021 11:06:58 +0100 Message-Id: <20210112100659.19350-2-matthias.bgg@kernel.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20210112100659.19350-1-matthias.bgg@kernel.org> References: <20210112100659.19350-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. Fixes: 2fdf82923618 ("regulator: mt6323: Add support for MT6323 regulator") Signed-off-by: Matthias Brugger --- Changes in v3: None Changes in v2: - check for CONFIG_OF - add Fixes tag drivers/regulator/mt6323-regulator.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/drivers/regulator/mt6323-regulator.c b/drivers/regulator/mt6323-regulator.c index ff9016170db3..646742d4db74 100644 --- a/drivers/regulator/mt6323-regulator.c +++ b/drivers/regulator/mt6323-regulator.c @@ -406,9 +406,18 @@ static const struct platform_device_id mt6323_platform_ids[] = { }; MODULE_DEVICE_TABLE(platform, mt6323_platform_ids); +#ifdef CONFIG_OF +static const struct of_device_id mt6323_of_match[] = { + { .compatible = "mediatek,mt6323-regulator", }, + { /* sentinel */ }, +}; +MODULE_DEVICE_TABLE(of, mt6323_of_match); +#endif + 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