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

Commit 01451ad4 authored by Allen Pais's avatar Allen Pais Committed by Michael Ellerman
Browse files

powerpc/powermac: Use setup_timer() helper



Use setup_timer function instead of initializing timer with the
function and data fields.

Signed-off-by: default avatarAllen Pais <allen.lkml@gmail.com>
Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
parent 8d6b1bf2
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -513,9 +513,7 @@ static struct pmac_i2c_host_kw *__init kw_i2c_host_init(struct device_node *np)
	mutex_init(&host->mutex);
	init_completion(&host->complete);
	spin_lock_init(&host->lock);
	init_timer(&host->timeout_timer);
	host->timeout_timer.function = kw_i2c_timeout;
	host->timeout_timer.data = (unsigned long)host;
	setup_timer(&host->timeout_timer, kw_i2c_timeout, (unsigned long)host);

	psteps = of_get_property(np, "AAPL,address-step", NULL);
	steps = psteps ? (*psteps) : 0x10;