target: Don't use void* when passing dev in core_tpg_add_lun
[linux-2.6-block.git] / drivers / target / target_core_tpg.c
index a1dbc94881836570679f4fc86636cef7fef17fac..d1df39a05d885edaa46c1ba3d0e1742299913ae5 100644 (file)
@@ -823,7 +823,7 @@ int core_tpg_add_lun(
        struct se_portal_group *tpg,
        struct se_lun *lun,
        u32 lun_access,
-       void *lun_ptr)
+       struct se_device *dev)
 {
        int ret;
 
@@ -831,7 +831,7 @@ int core_tpg_add_lun(
        if (ret < 0)
                return ret;
 
-       ret = core_dev_export(lun_ptr, tpg, lun);
+       ret = core_dev_export(dev, tpg, lun);
        if (ret < 0) {
                percpu_ref_cancel_init(&lun->lun_ref);
                return ret;