]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
usb: dwc3: st: simplify pdev->dev usage
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Wed, 14 Aug 2024 10:35:39 +0000 (12:35 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 3 Sep 2024 07:52:45 +0000 (09:52 +0200)
The probe() function already stores '&pdev->dev' in local 'dev'
variable.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com>
Acked-by: Thinh Nguyen <Thinh.Nguyen@synopsys.com>
Link: https://lore.kernel.org/r/20240814-b4-cleanup-h-of-node-put-usb-v1-3-95481b9682bc@linaro.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/dwc3/dwc3-st.c

index 7a0b1821768aa43745d49a720d0f677996f9749b..2841021f3557f88ba5ff7604e9209ee85b2fa1d1 100644 (file)
@@ -225,13 +225,13 @@ static int st_dwc3_probe(struct platform_device *pdev)
 
        dwc3_data->syscfg_reg_off = res->start;
 
-       dev_vdbg(&pdev->dev, "glue-logic addr 0x%pK, syscfg-reg offset 0x%x\n",
+       dev_vdbg(dev, "glue-logic addr 0x%pK, syscfg-reg offset 0x%x\n",
                 dwc3_data->glue_base, dwc3_data->syscfg_reg_off);
 
        struct device_node *child __free(device_node) = of_get_compatible_child(node,
                                                                                "snps,dwc3");
        if (!child) {
-               dev_err(&pdev->dev, "failed to find dwc3 core node\n");
+               dev_err(dev, "failed to find dwc3 core node\n");
                return -ENODEV;
        }