device: add dev_WARN_ONCE
authorFelipe Balbi <balbi@ti.com>
Wed, 16 Mar 2011 13:59:35 +0000 (15:59 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 19 Apr 2011 23:45:50 +0000 (16:45 -0700)
commitbcdd323b893ad3c9b7ef26b5e4a0bef974238501
tree3a107018f470ec4d7e021d1421ba3688770f473f
parentf0e615c3cb72b42191b558c130409335812621d8
device: add dev_WARN_ONCE

it's quite useful to print the device name
on the stack dump caused by WARN(), but
there are other cases where we might want
to use WARN_ONCE.

Introduce a helper similar to dev_WARN() for
that case too.

Signed-off-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
include/linux/device.h