]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - drivers/input/keyboard/cros_ec_keyb.c
Input: touchscreen - drop unnecessary calls to input_set_drvdata
[karo-tx-linux.git] / drivers / input / keyboard / cros_ec_keyb.c
index 4b0878f3547171044600bd85d9a0c24c66accd3a..165c722408aaa37128e9e56ebf88674b0e0ea4f2 100644 (file)
@@ -242,7 +242,7 @@ static int cros_ec_keyb_probe(struct platform_device *pdev)
        struct device_node *np;
        int err;
 
-       np = pdev->dev.of_node;
+       np = dev->of_node;
        if (!np)
                return -ENODEV;
 
@@ -272,7 +272,6 @@ static int cros_ec_keyb_probe(struct platform_device *pdev)
 
        ckdev->ec = ec;
        ckdev->dev = dev;
-       dev_set_drvdata(dev, ckdev);
 
        idev->name = CROS_EC_DEV_NAME;
        idev->phys = ec->phys_name;