]> git.baikalelectronics.ru Git - kernel.git/commit
dp83640: reverse arguments to list_add_tail
authorJulia Lawall <Julia.Lawall@inria.fr>
Thu, 30 Apr 2020 19:51:32 +0000 (21:51 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 1 May 2020 00:48:26 +0000 (17:48 -0700)
commitba21983b4fb7751c641a0c535e8c7f6ff5dd00aa
treea68b66d18f101e2d55524d5cdb0d3abcf6c2ade0
parent9ab3b1e4ace18e99b1b6186c3d5de9f51c30f0eb
dp83640: reverse arguments to list_add_tail

In this code, it appears that phyter_clocks is a list head, based on
the previous list_for_each, and that clock->list is intended to be a
list element, given that it has just been initialized in
dp83640_clock_init.  Accordingly, switch the arguments to
list_add_tail, which takes the list head as the second argument.

Fixes: 46d0464b6fd54 ("ptp: Added a clock driver for the National Semiconductor PHYTER.")
Signed-off-by: Julia Lawall <Julia.Lawall@inria.fr>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/dp83640.c