ssb: use WARN in main.c
authorCong Ding <dinggnu@gmail.com>
Sat, 8 Dec 2012 23:11:06 +0000 (23:11 +0000)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 10 Dec 2012 20:47:32 +0000 (15:47 -0500)
Use WARN rather than printk followed by WARN_ON(1), for conciseness.

Signed-off-by: Cong Ding <dinggnu@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/ssb/main.c

index 58c7da29a37ccda27f8e123d4a76af42cf2b3ab7..6e0daaa0e04ba6b01417d7873c8dde129fe1883f 100644 (file)
@@ -1126,8 +1126,7 @@ static u32 ssb_tmslow_reject_bitmask(struct ssb_device *dev)
        case SSB_IDLOW_SSBREV_27:     /* same here */
                return SSB_TMSLOW_REJECT;       /* this is a guess */
        default:
-               printk(KERN_INFO "ssb: Backplane Revision 0x%.8X\n", rev);
-               WARN_ON(1);
+               WARN(1, KERN_INFO "ssb: Backplane Revision 0x%.8X\n", rev);
        }
        return (SSB_TMSLOW_REJECT | SSB_TMSLOW_REJECT_23);
 }