Searched refs:hwspin (Results 1 – 1 of 1) sorted by relevance
58 struct sirf_hwspinlock *hwspin; in sirf_hwspinlock_probe() local65 hwspin = devm_kzalloc(&pdev->dev, sizeof(*hwspin) + in sirf_hwspinlock_probe()67 if (!hwspin) in sirf_hwspinlock_probe()71 hwspin->io_base = of_iomap(pdev->dev.of_node, 0); in sirf_hwspinlock_probe()72 if (!hwspin->io_base) in sirf_hwspinlock_probe()76 hwlock = &hwspin->bank.lock[idx]; in sirf_hwspinlock_probe()77 hwlock->priv = hwspin->io_base + HW_SPINLOCK_OFFSET(idx); in sirf_hwspinlock_probe()80 platform_set_drvdata(pdev, hwspin); in sirf_hwspinlock_probe()84 ret = hwspin_lock_register(&hwspin->bank, &pdev->dev, in sirf_hwspinlock_probe()94 iounmap(hwspin->io_base); in sirf_hwspinlock_probe()[all …]