]> git.openfabrics.org - ~emulex/infiniband.git/commitdiff
Input: gpio_keys - remove redundant platform_set_drvdata()
authorSachin Kamat <sachin.kamat@linaro.org>
Mon, 6 May 2013 14:31:25 +0000 (07:31 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 8 May 2013 16:04:40 +0000 (09:04 -0700)
Commit 0998d06310 (device-core: Ensure drvdata = NULL when no
driver is bound) removes the need to set driver data field to
NULL.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/keyboard/gpio_keys.c

index b29ca651a3951e568527e4c7a041f101bba06c3a..440ce32462baefafcabdda55c5c168c27753757c 100644 (file)
@@ -767,7 +767,6 @@ static int gpio_keys_probe(struct platform_device *pdev)
        while (--i >= 0)
                gpio_remove_key(&ddata->data[i]);
 
-       platform_set_drvdata(pdev, NULL);
  fail1:
        input_free_device(input);
        kfree(ddata);