mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-22 17:25:35 +03:00
pwm: tachometer: Fix build for Linux v6.1
Upstream Linux kernel commit b88c48bfdd85 ("pwm: core: Get rid of unused
devm_of_pwm_get()") has removed the function devm_of_pwm_get() which
breaks building the Tegra PWM tachometer driver with Linux v6.1-rc1.
Fix this by updating the driver to use the function
devm_fwnode_pwm_get() instead.
Bug 3831575
Change-Id: I89def599312baa4d3b6b25b1275835233e942af0
Signed-off-by: Jon Hunter <jonathanh@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2793510
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
5673301681
commit
3c38a2fe6f
@@ -55,7 +55,7 @@ static int pwm_tach_probe(struct platform_device *pdev)
|
||||
platform_set_drvdata(pdev, ptt);
|
||||
dev_set_drvdata(&pdev->dev, ptt);
|
||||
|
||||
ptt->pwm = devm_of_pwm_get(&pdev->dev, pdev->dev.of_node, NULL);
|
||||
ptt->pwm = devm_fwnode_pwm_get(&pdev->dev, &pdev->dev.of_node->fwnode, NULL);
|
||||
if (IS_ERR(ptt->pwm)) {
|
||||
if (PTR_ERR(ptt->pwm) != -EPROBE_DEFER) {
|
||||
dev_err(&pdev->dev, "Failed to get pwm: %ld\n",
|
||||
|
||||
Reference in New Issue
Block a user