The old name is not logical anymore - rename it to 'ubi_destroy_ai()'.
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
        if (err)
                goto out_wl;
 
-       ubi_scan_destroy_ai(ai);
+       ubi_destroy_ai(ai);
        return 0;
 
 out_wl:
        free_internal_volumes(ubi);
        vfree(ubi->vtbl);
 out_ai:
-       ubi_scan_destroy_ai(ai);
+       ubi_destroy_ai(ai);
        return err;
 }
 
 
 out_ech:
        kfree(ech);
 out_ai:
-       ubi_scan_destroy_ai(ai);
+       ubi_destroy_ai(ai);
        return ERR_PTR(err);
 }
 
 }
 
 /**
- * ubi_scan_destroy_ai - destroy attaching information.
+ * ubi_destroy_ai - destroy attaching information.
  * @ai: attaching information
  */
-void ubi_scan_destroy_ai(struct ubi_attach_info *ai)
+void ubi_destroy_ai(struct ubi_attach_info *ai)
 {
        struct ubi_ainf_peb *aeb, *aeb_tmp;
        struct ubi_ainf_volume *av;
 
 struct ubi_ainf_peb *ubi_early_get_peb(struct ubi_device *ubi,
                                       struct ubi_attach_info *ai);
 struct ubi_attach_info *ubi_scan(struct ubi_device *ubi);
-void ubi_scan_destroy_ai(struct ubi_attach_info *ai);
+void ubi_destroy_ai(struct ubi_attach_info *ai);
 
 #endif /* !__UBI_SCAN_H__ */