From: Guenter Roeck Date: Mon, 23 Jan 2017 01:18:45 +0000 (-0800) Subject: Input: dm355evm_keys - drop unnecessary call to input_set_drvdata X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=86178c8634ff8abe04933839d009c4440213040f;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git Input: dm355evm_keys - drop unnecessary call to input_set_drvdata Since there is no call to dev_get_drvdata() or input_get_drvdata(), the call to input_set_drvdata() is unnecessary and can be dropped. Signed-off-by: Guenter Roeck Signed-off-by: Dmitry Torokhov --- diff --git a/drivers/input/misc/dm355evm_keys.c b/drivers/input/misc/dm355evm_keys.c index b6b7bd4e5462..82e272ebc0ed 100644 --- a/drivers/input/misc/dm355evm_keys.c +++ b/drivers/input/misc/dm355evm_keys.c @@ -195,8 +195,6 @@ static int dm355evm_keys_probe(struct platform_device *pdev) goto fail1; keys->irq = status; - input_set_drvdata(input, keys); - input->name = "DM355 EVM Controls"; input->phys = "dm355evm/input0"; input->dev.parent = &pdev->dev;