lapd: Use lapd_dl_init2 instead of deprecated lapd_dl_init

Change-Id: If25957d10bf9e32d2fe601111a9c1311aee21094
diff --git a/TODO-RELEASE b/TODO-RELEASE
index aa278ec..bf3ef84 100644
--- a/TODO-RELEASE
+++ b/TODO-RELEASE
@@ -11,3 +11,4 @@
 libosmo-trau	API change	add new function osmo_rtp_socket_set_dscp()
 libosmo-abis	API change	major: add parameter to struct lapd_instance
 libosmo-abis	Field added	struct e1inp_line "use_count". REMINDER: Upon LIBVERSION c bump, take the chance to drop struct e1inp_line "refcnt" field.
+libosmo-abis	libosmogsm dep Use of lapd_dl_init2() requires libosmocore > 1.3.0 (not yet released, 00b2faf8217338d4d7d1f4d27331af3151447350)
diff --git a/src/input/lapd.c b/src/input/lapd.c
index 5359a64..d8c67e4 100644
--- a/src/input/lapd.c
+++ b/src/input/lapd.c
@@ -259,8 +259,7 @@
 	LOGP(DLLAPD, LOGL_NOTICE, "%s: k=%d N200=%d N201=%d T200=%d.%d T203=%d.%d\n",
 		name, k, profile->n200, profile->n201, profile->t200_sec,
 		profile->t200_usec, profile->t203_sec, profile->t203_usec);
-	lapd_dl_init(dl, k, 128, profile->n201);
-	lapd_dl_set_name(dl, name);
+	lapd_dl_init2(dl, k, 128, profile->n201, name);
 	dl->use_sabme = 1; /* use SABME instead of SABM (GSM) */
 	dl->send_ph_data_req = send_ph_data_req;
 	dl->send_dlsap = send_dlsap;