mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
[ARM] pxa: make it clear by converting MMC 'delay_detect' to millisecond
delay_detect in HZ is confusing, convert it to be millisecond based. And thus remove those unnecessary call to msecs_to_jiffies() at runtime for this field. Other constants are converted assuming HZ == 100, which are basically true for those platforms. The assignment in csb726.c was incorrect, and is fixed in this patch as a result. Signed-off-by: Eric Miao <[email protected]> Acked-by: Robert Jarzmik <[email protected]> Acked-by: Marc Zyngier <[email protected]> Acked-by: Marek Vasut <[email protected]> Acked-by: Mike Rapoport <[email protected]> Acked-by: Daniel Mack <[email protected]>
This commit is contained in:
parent
e66b6d8e86
commit
f97cab28b1
26 changed files with 29 additions and 41 deletions
|
|
@ -544,7 +544,7 @@ static irqreturn_t pxamci_detect_irq(int irq, void *devid)
|
|||
{
|
||||
struct pxamci_host *host = mmc_priv(devid);
|
||||
|
||||
mmc_detect_change(devid, host->pdata->detect_delay);
|
||||
mmc_detect_change(devid, msecs_to_jiffies(host->pdata->detect_delay_ms));
|
||||
return IRQ_HANDLED;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue