Skip to contentSkip to conversation

isdn/gigaset: report ISDN4Linux interface only once

PATCH Applied Tilman Schmidt 2 participants 2 messages Nov 27, 2011

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 isdn/gigaset: report ISDN4Linux interface only once

Move the "ISDN4Linux interface" message from device registration, where it is emitted for each device, to driver registration, where it is emitted only once, for consistency with the CAPI variant.

---
 drivers/isdn/gigaset/i4l.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
drivers/isdn/gigaset/i4l.c +1 -2
index 04231cb..1793ba1 100644
@@ -624,8 +624,6 @@ int gigaset_isdn_regdev(struct cardstate *cs, const char *isdnid)
 {
 	isdn_if *iif;
 
-	pr_info("ISDN4Linux interface\n");
-
 	iif = kmalloc(sizeof *iif, GFP_KERNEL);
 	if (!iif) {
 		pr_err("out of memory\n");
@@ -684,6 +682,7 @@ void gigaset_isdn_unregdev(struct cardstate *cs)
  */
 void gigaset_isdn_regdrv(void)
 {
+	pr_info("ISDN4Linux interface\n");
 	/* nothing to do */
 }
 
Signature · 1 line
1.7.3.4
maintainer Applied
#1 lore raw

From: Tilman Schmidt <[email protected]>
Date: Sun, 27 Nov 2011 18:39:22 +0100

Quoted 5 lines

Move the "ISDN4Linux interface" message from device registration, where it is emitted for each device, to driver registration, where it is emitted only once, for consistency with the CAPI variant.

Applied to net-next, thanks.