]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
phy: marvell: Fix not calling dev_err with a device
authorSean Anderson <seanga2@gmail.com>
Tue, 15 Sep 2020 14:45:02 +0000 (10:45 -0400)
committerTom Rini <trini@konsulko.com>
Wed, 30 Sep 2020 12:53:28 +0000 (08:53 -0400)
No need for indirection here.

Signed-off-by: Sean Anderson <seanga2@gmail.com>
Tested-by: Patrick Delaunay <patrick.delaunay@st.com>
drivers/phy/marvell/comphy_core.c

index 27bff27ff7ecde49bd9b973cb51855064b03bb2e..5e8ce740cd621fb28ff66b0915cbfaf373acc180 100644 (file)
@@ -98,14 +98,14 @@ static int comphy_probe(struct udevice *dev)
        chip_cfg->comphy_lanes_count = fdtdec_get_int(blob, node,
                                                      "max-lanes", 0);
        if (chip_cfg->comphy_lanes_count <= 0) {
-               dev_err(&dev->dev, "comphy max lanes is wrong\n");
+               dev_err(dev, "comphy max lanes is wrong\n");
                return -EINVAL;
        }
 
        chip_cfg->comphy_mux_bitcount = fdtdec_get_int(blob, node,
                                                       "mux-bitcount", 0);
        if (chip_cfg->comphy_mux_bitcount <= 0) {
-               dev_err(&dev->dev, "comphy mux bit count is wrong\n");
+               dev_err(dev, "comphy mux bit count is wrong\n");
                return -EINVAL;
        }
 
@@ -124,7 +124,7 @@ static int comphy_probe(struct udevice *dev)
         * compatible node is found
         */
        if (!chip_cfg->ptr_comphy_chip_init) {
-               dev_err(&dev->dev, "comphy: No compatible DT node found\n");
+               dev_err(dev, "comphy: No compatible DT node found\n");
                return -ENODEV;
        }