diff options
author | Cong Ding <dinggnu@gmail.com> | 2012-12-08 18:11:06 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2012-12-10 15:47:32 -0500 |
commit | 6cdd6400b244e6c130b8b418af28a0aec60ad5b5 (patch) | |
tree | e49fc9c5201967303090536040e9939dc33ee36b /drivers/ssb/main.c | |
parent | fc5e286ff4ff6da3e76e6eb58c535e250ad2ff18 (diff) |
ssb: use WARN in main.c
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>
Diffstat (limited to 'drivers/ssb/main.c')
-rw-r--r-- | drivers/ssb/main.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/ssb/main.c b/drivers/ssb/main.c index 58c7da29a37c..6e0daaa0e04b 100644 --- a/drivers/ssb/main.c +++ b/drivers/ssb/main.c | |||
@@ -1126,8 +1126,7 @@ static u32 ssb_tmslow_reject_bitmask(struct ssb_device *dev) | |||
1126 | case SSB_IDLOW_SSBREV_27: /* same here */ | 1126 | case SSB_IDLOW_SSBREV_27: /* same here */ |
1127 | return SSB_TMSLOW_REJECT; /* this is a guess */ | 1127 | return SSB_TMSLOW_REJECT; /* this is a guess */ |
1128 | default: | 1128 | default: |
1129 | printk(KERN_INFO "ssb: Backplane Revision 0x%.8X\n", rev); | 1129 | WARN(1, KERN_INFO "ssb: Backplane Revision 0x%.8X\n", rev); |
1130 | WARN_ON(1); | ||
1131 | } | 1130 | } |
1132 | return (SSB_TMSLOW_REJECT | SSB_TMSLOW_REJECT_23); | 1131 | return (SSB_TMSLOW_REJECT | SSB_TMSLOW_REJECT_23); |
1133 | } | 1132 | } |