staging: olpc_dcon: return NOTIFY_DONE instead of the 0.
authorDevendra Naga <devendra.aaru@gmail.com>
Sat, 16 Mar 2013 18:38:39 +0000 (14:38 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 25 Mar 2013 18:02:55 +0000 (11:02 -0700)
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>
drivers/staging/olpc_dcon/olpc_dcon.c

index 54ed6f69e3d47fa4a3c19b9bfa202f422f4d8f8a..193e1c68bb4543a35fcde546c0423d3b99e7df26 100644 (file)
@@ -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,