Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp976129pxb; Sat, 9 Jan 2021 03:29:18 -0800 (PST) X-Google-Smtp-Source: ABdhPJy474vjTiIpl5uNFAF+f5nECvoFBDDPrPBshGAD7Rh5TMJEao9Sru1QSXiLQoGSAkW9F0a8 X-Received: by 2002:a17:906:8151:: with SMTP id z17mr5489763ejw.48.1610191758412; Sat, 09 Jan 2021 03:29:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610191758; cv=none; d=google.com; s=arc-20160816; b=NUzSZQvwzkyHYpFm7oZlqY88h3aGpuZM1INIOZhv9O1JNoqrkzXQkggBnrBdhiGUlz 4Y4TrDYjiZriLiBAJhZoDfG16VuiqH7pBc6Pp4M5NOvYImuEDM7LFBv7tmFn5ucnnrlP B17XiIyNWrixkRdS+NN5VdOMtT3EW4QJB5hJmU6ipnHqCokxPyp1ULtqdypItywOEl13 Ke44glB7tYB6atsXyBnJKSOi136iYcOwSZemI6Cd1MhQ3XQGxRuqP0t9Dvq2YED04kSE YDprinGDzOU1p8b3Lovovu/WEXg4qgJGjJr/gqnXIpokOpMTTdTFQwR+PwUPt0nWMrCd onxQ== 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=xTzoDCRJq4/QKNU/dOnFR/xUqblFLeMhl5oJugnamzI=; b=UHp8vLq+QPZDHkzXzHs+NNujrLIws6e/nMV/6YUlofu47OaOSveEytbea0S74s0wyJ UuU1oMKIeyCTvrB+OmLbP95+HzGOlaad7r5zOl304Q9v9nz1MmKhC7vJom5tsDGeYtQX FZD0McQiW2CvgAFmlqROyo73xrg6SdBnNC/8Pg8gz+aviVz80rdtf6TfJQGLE7CVKwrZ tbz1xbMzimx9R7dvDWQQvPHiZLjZy3rmwxOFxhEIAawLmNzlku9rofWOeZtEOipAB5pD rihaTPOgOZ73CBmYztZPDCKFJ6MWBCzckdG+FUqyHqs7UktNsmEQWjr75GrZeSJqD/Sm QyYA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=KGmINWBj; 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 o7si634075eja.635.2021.01.09.03.28.55; Sat, 09 Jan 2021 03:29:18 -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=KGmINWBj; 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 S1726238AbhAIL1C (ORCPT + 99 others); Sat, 9 Jan 2021 06:27:02 -0500 Received: from mail.kernel.org ([198.145.29.99]:59226 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725901AbhAIL1B (ORCPT ); Sat, 9 Jan 2021 06:27:01 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 424F123A58; Sat, 9 Jan 2021 11:26:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1610191580; bh=6GN7kj+RoSZ2m6uLCL8sHki+5OJWmv4cnpxhwevCVRA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=KGmINWBjz8c2GpjrFDL6ZZ2f9Dn4P8DCj1G1xmdvlDyjtT3ySCXyGtQ7BPqo+4VUw FvozlS555RlT0QbFq9ZCDsBsmSJJw2dmJtN98qHl9zuYnc6wuuHtOJ1JkOL5YFoVel pqeCc8U1Eig5Fcs0GFX95DYhIcu6NCnlT7GeCLr7i1TkCQhUJQpWhaVPnr8JOxBpjX 5rzsuVqgFVgaZaCojVfgA+8z8w4e+05wZICYYa3afcczl7gnzwJgJU930VIcQNkWqW Ijb+XaDuI8aPOSkoDaJ9X6wI7wXXjQB4RPxeORPldX9SDDJEXqdJa0GAVQrEAJBTBI BVmZ2cxtd5KiA== 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 2/3] regulator: mt6358: Add OF match table Date: Sat, 9 Jan 2021 12:26:10 +0100 Message-Id: <20210109112612.1221-2-matthias.bgg@kernel.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20210109112612.1221-1-matthias.bgg@kernel.org> References: <20210109112612.1221-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. Fixes: f67ff1bd58f0 ("regulator: mt6358: Add support for MT6358 regulator") Signed-off-by: Matthias Brugger --- 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