Skip to content

Commit 3a1ed01

Browse files
covanamKAGA-KOKO
authored andcommitted
mmc: dw_mmc: Switch to use hrtimer_setup()
hrtimer_setup() takes the callback function pointer as argument and initializes the timer completely. Replace hrtimer_init() and the open coded initialization of hrtimer::function with the new setup mechanism. Patch was created by using Coccinelle. Signed-off-by: Nam Cao <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]> Acked-by: Zack Rusin <[email protected]> Link: https://lore.kernel.org/all/4dec579387ced5e97bb25739fad2ac852e5a689c.1738746904.git.namcao@linutronix.de
1 parent abeebe8 commit 3a1ed01

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

drivers/mmc/host/dw_mmc.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1875,8 +1875,7 @@ static void dw_mci_init_fault(struct dw_mci *host)
18751875
{
18761876
host->fail_data_crc = (struct fault_attr) FAULT_ATTR_INITIALIZER;
18771877

1878-
hrtimer_init(&host->fault_timer, CLOCK_MONOTONIC, HRTIMER_MODE_REL);
1879-
host->fault_timer.function = dw_mci_fault_timer;
1878+
hrtimer_setup(&host->fault_timer, dw_mci_fault_timer, CLOCK_MONOTONIC, HRTIMER_MODE_REL);
18801879
}
18811880
#else
18821881
static void dw_mci_init_fault(struct dw_mci *host)

0 commit comments

Comments
 (0)