Skip to content

Commit 0682993

Browse files
committed
Merge tag 'linux-can-fixes-for-5.4-20191122' of git://git.kernel.org/pub/scm/linux/kernel/git/mkl/linux-can
Marc Kleine-Budde says: ==================== pull-request: can 2019-11-22 this is a pull request of 2 patches for net/master, if possible for the current release cycle. Otherwise these patches should hit v5.4 via the stable tree. Both patches of this pull request target the m_can driver. Pankaj Sharma fixes the fallout in the m_can_platform part, which appeared with the introduction of the m_can platform framework. ==================== Signed-off-by: David S. Miller <[email protected]>
2 parents efabb6c + 0704c57 commit 0682993

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

drivers/net/can/m_can/m_can_platform.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ static int m_can_plat_probe(struct platform_device *pdev)
107107

108108
mcan_class->is_peripheral = false;
109109

110-
platform_set_drvdata(pdev, mcan_class->dev);
110+
platform_set_drvdata(pdev, mcan_class->net);
111111

112112
m_can_init_ram(mcan_class);
113113

@@ -166,8 +166,6 @@ static int __maybe_unused m_can_runtime_resume(struct device *dev)
166166
if (err)
167167
clk_disable_unprepare(mcan_class->hclk);
168168

169-
m_can_class_resume(dev);
170-
171169
return err;
172170
}
173171

0 commit comments

Comments
 (0)