Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1bcf165a authored by Zhu Yanjun's avatar Zhu Yanjun Committed by David S. Miller
Browse files

r8169: replace init_timer with setup_timer



Replace init_timer with setup_timer to simplify the source code.

Signed-off-by: default avatarZhu Yanjun <yanjun.zhu@oracle.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 13d61c3a
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -8453,9 +8453,7 @@ static int rtl_init_one(struct pci_dev *pdev, const struct pci_device_id *ent)
	tp->opts1_mask = (tp->mac_version != RTL_GIGA_MAC_VER_01) ?
		~(RxBOVF | RxFOVF) : ~0;

	init_timer(&tp->timer);
	tp->timer.data = (unsigned long) dev;
	tp->timer.function = rtl8169_phy_timer;
	setup_timer(&tp->timer, rtl8169_phy_timer, (unsigned long)dev);

	tp->rtl_fw = RTL_FIRMWARE_UNKNOWN;