From: Patrice CHOTARD Date: Wed, 16 Sep 2020 07:47:38 +0000 Subject: [PATCH v2 30/46] phy: usbphyc: Fix not calling dev_err with a device In-Reply-To: <20200915144522.509493-31-seanga2@gmail.com> References: <20200915144522.509493-1-seanga2@gmail.com> <20200915144522.509493-31-seanga2@gmail.com> Message-ID: <0593de3b-41c7-bd7b-a0b2-85d9121bce70@st.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Sean On 9/15/20 4:45 PM, Sean Anderson wrote: > Use the phy's device. > > Signed-off-by: Sean Anderson > --- > > Changes in v2: > - New > > drivers/phy/phy-stm32-usbphyc.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/phy/phy-stm32-usbphyc.c b/drivers/phy/phy-stm32-usbphyc.c > index c6d3048602..9d4296d649 100644 > --- a/drivers/phy/phy-stm32-usbphyc.c > +++ b/drivers/phy/phy-stm32-usbphyc.c > @@ -311,7 +311,7 @@ static int stm32_usbphyc_of_xlate(struct phy *phy, > > if ((phy->id == 0 && args->args_count != 1) || > (phy->id == 1 && args->args_count != 2)) { > - dev_err(dev, "invalid number of cells for phy port%ld\n", > + dev_err(phy->dev, "invalid number of cells for phy port%ld\n", > phy->id); > return -EINVAL; > } Reviewed-by: Patrice Chotard Thanks