]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
power: supply: axp20x_usb_power: Remove unused device_node
authorSamuel Holland <samuel@sholland.org>
Mon, 13 Jan 2020 03:53:06 +0000 (21:53 -0600)
committerSebastian Reichel <sre@kernel.org>
Tue, 14 Jan 2020 00:00:42 +0000 (01:00 +0100)
This member of struct axp20x_usb_power is not used anywhere.
Remove it.

Reviewed-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Samuel Holland <samuel@sholland.org>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/supply/axp20x_usb_power.c

index 5f0a5722b19ed2b5112c0159c01e019b6ef64547..dd3f3f12e41dd1a6be34178caaa020bb397cf636 100644 (file)
@@ -57,7 +57,6 @@
 #define DEBOUNCE_TIME                  msecs_to_jiffies(50)
 
 struct axp20x_usb_power {
-       struct device_node *np;
        struct regmap *regmap;
        struct power_supply *supply;
        enum axp20x_variants axp20x_id;
@@ -465,7 +464,6 @@ static int axp20x_usb_power_probe(struct platform_device *pdev)
        power->axp20x_id = (enum axp20x_variants)of_device_get_match_data(
                                                                &pdev->dev);
 
-       power->np = pdev->dev.of_node;
        power->regmap = axp20x->regmap;
 
        if (power->axp20x_id == AXP202_ID) {