]> Git Repo - linux.git/blobdiff - drivers/gpio/gpio-mockup.c
ACPI: CPPC: Adjust debug messages in amd_set_max_freq_ratio() to warn
[linux.git] / drivers / gpio / gpio-mockup.c
index 4870e267a402acd877e7facfe844d8fe3925aa45..455eecf6380e4422156786516d64c13e4c08933d 100644 (file)
@@ -354,7 +354,6 @@ static const struct file_operations gpio_mockup_debugfs_ops = {
 static void gpio_mockup_debugfs_setup(struct device *dev,
                                      struct gpio_mockup_chip *chip)
 {
-       struct device *child __free(put_device) = NULL;
        struct gpio_mockup_dbgfs_private *priv;
        struct gpio_chip *gc;
        const char *devname;
@@ -367,7 +366,7 @@ static void gpio_mockup_debugfs_setup(struct device *dev,
         * There can only be a single GPIO device per platform device in
         * gpio-mockup so using device_find_any_child() is OK.
         */
-       child = device_find_any_child(dev);
+       struct device *child __free(put_device) = device_find_any_child(dev);
        if (!child)
                return;
 
This page took 0.031828 seconds and 4 git commands to generate.