summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorDevendra Naga <devendra.aaru@gmail.com>2013-03-16 14:38:39 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-03-25 11:02:55 -0700
commit2cc5939d761b8c8c6de16814bad4126e4a173d11 (patch)
tree3c7f43c8f398fca33a5bc0b90a18b52883a0393c /drivers
parent815fb010fcba058df43f30fa614cf954dd9e7bcc (diff)
staging: olpc_dcon: return NOTIFY_DONE instead of the 0.
return a valid macro instead of 0 (as #define NOTIFY_DONE 0) in the reboot callback Signed-off-by: Devendra Naga <devendra.aaru@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/staging/olpc_dcon/olpc_dcon.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/olpc_dcon/olpc_dcon.c b/drivers/staging/olpc_dcon/olpc_dcon.c
index 54ed6f69e3d4..193e1c68bb45 100644
--- a/drivers/staging/olpc_dcon/olpc_dcon.c
+++ b/drivers/staging/olpc_dcon/olpc_dcon.c
@@ -550,12 +550,12 @@ static int dcon_reboot_notify(struct notifier_block *nb,
struct dcon_priv *dcon = container_of(nb, struct dcon_priv, reboot_nb);
if (!dcon || !dcon->client)
- return 0;
+ return NOTIFY_DONE;
/* Turn off the DCON. Entirely. */
dcon_write(dcon, DCON_REG_MODE, 0x39);
dcon_write(dcon, DCON_REG_MODE, 0x32);
- return 0;
+ return NOTIFY_DONE;
}
static int unfreeze_on_panic(struct notifier_block *nb,