static void __exit test_hwspinlock_exit(void) { int ret; ret = hwspin_lock_free(hwlock); if (ret) pr_err("%s: free failed: %d\n", __func__, ret); else pr_info("%s: freed lock %d\n", __func__, hwspin_lock_get_id(hwlock)); return; }
static int debugfs_hwspinlock_lock_free(struct hwspinlock *_hwlock) { int ret; ret = hwspin_lock_free(_hwlock); if (ret) pr_err("[debug] hwspinlock free fail, ret = [%d]\n", ret); else pr_info("[debug] hwspinlock free %d sucess!\n", hwlock_to_id(_hwlock)); return ret; }
static void sc27xx_adc_free_hwlock(void *_data) { struct hwspinlock *hwlock = _data; hwspin_lock_free(hwlock); }