ath79: ag71xx: add support for timer functions in linux 4.15+
authorChuanhong Guo <gch981213@gmail.com>
Wed, 12 Dec 2018 11:09:35 +0000 (19:09 +0800)
committerPetr Štetiar <ynezz@true.cz>
Sun, 24 Mar 2019 00:44:24 +0000 (01:44 +0100)
commit8d3af284e0b0735abbb915b01e65c22f4a049feb
tree0c845a669e07a2d5b0f0dba175565665311e2a19
parent67fced9ba336dd69c5a35aec3157db4b158a9e2d
ath79: ag71xx: add support for timer functions in linux 4.15+

Kernel newer than 4.15 dropped "data" field and used from_timer
to cast out the parent struct pointer for current timer.

Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
target/linux/ath79/files/drivers/net/ethernet/atheros/ag71xx/ag71xx_main.c