isdn/gigaset: report ISDN4Linux interface only once
authorTilman Schmidt <tilman@imap.cc>
Sun, 27 Nov 2011 07:39:22 +0000 (07:39 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 27 Nov 2011 22:08:30 +0000 (17:08 -0500)
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.

Signed-off-by: Tilman Schmidt <tilman@imap.cc>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/isdn/gigaset/i4l.c

index 04231cb..1793ba1 100644 (file)
@@ -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 */
 }