Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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 <namcao@linutronix.de>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Acked-by: Zack Rusin <zack.rusin@broadcom.com>
Link: https://lore.kernel.org/all/4dec579387ced5e97bb25739fad2ac852e5a689c.1738746904.git.namcao@linutronix.de

authored by

Nam Cao and committed by
Thomas Gleixner
3a1ed018 abeebe88

+1 -2
+1 -2
drivers/mmc/host/dw_mmc.c
··· 1875 1875 { 1876 1876 host->fail_data_crc = (struct fault_attr) FAULT_ATTR_INITIALIZER; 1877 1877 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); 1880 1879 } 1881 1880 #else 1882 1881 static void dw_mci_init_fault(struct dw_mci *host)