From: Santosh Nayak <santoshprasadnayak@xxxxxxxxx> Instead of "in_atomic()", we can use in_interrupt() to check whether its an interrupt context. Signed-off-by: Santosh Nayak <santoshprasadnayak@xxxxxxxxx> --- drivers/video/amba-clcd.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/video/amba-clcd.c b/drivers/video/amba-clcd.c index 0a2cce7..63c25da 100644 --- a/drivers/video/amba-clcd.c +++ b/drivers/video/amba-clcd.c @@ -39,7 +39,7 @@ static const char *clcd_name = "CLCD FB"; */ static inline void clcdfb_sleep(unsigned int ms) { - if (in_atomic()) { + if (in_interrupt()) { mdelay(ms); } else { msleep(ms); -- 1.7.4.4 -- To unsubscribe from this list: send the line "unsubscribe kernel-janitors" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html