From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id E15DCC54E94 for ; Wed, 25 Jan 2023 14:39:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235784AbjAYOjv (ORCPT ); Wed, 25 Jan 2023 09:39:51 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42822 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235664AbjAYOjt (ORCPT ); Wed, 25 Jan 2023 09:39:49 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C8D9F5B93; Wed, 25 Jan 2023 06:39:22 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 401B061494; Wed, 25 Jan 2023 14:38:32 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 29564C433EF; Wed, 25 Jan 2023 14:38:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1674657511; bh=IoSzOBYb/BV5JDLbRJWFIgSOplOI4fyYUdKcUEbQnYY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=noibiVqfCvyFZg2ChVkUuFfQ6DRsQ8wekHQa2Gk352QS4PwyKuDa55AhvQAUIm13Q vn9QAG8SPB9/a7oZ+v/x7EytPKNQlJ4wboXRe0OX40yGABLZW1ZhmBe/EaUYTah0A/ 7GoO4F+taI2Z+4FlF8mHesav5c5G0dIhiR64XQTc= Date: Wed, 25 Jan 2023 15:38:29 +0100 From: Greg Kroah-Hartman To: Geert Uytterhoeven Cc: Vinod Koul , Jonathan Corbet , Madalin Bucur , "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Horatiu Vultur , UNGLinuxDriver@microchip.com, Thierry Reding , Lorenzo Pieralisi , Rob Herring , Krzysztof =?utf-8?Q?Wilczy=C5=84ski?= , Bjorn Helgaas , Jonathan Hunter , Kishon Vijay Abraham I , Alan Stern , Krzysztof Kozlowski , Alim Akhtar , Siddharth Vadapalli , Russell King , linux-phy@lists.infradead.org, linux-doc@vger.kernel.org, netdev@vger.kernel.org, linux-tegra@vger.kernel.org, linux-pci@vger.kernel.org, linux-usb@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org Subject: Re: [PATCH v2 8/9] usb: host: ehci-exynos: Convert to devm_of_phy_optional_get() Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org On Tue, Jan 24, 2023 at 07:37:27PM +0100, Geert Uytterhoeven wrote: > Use the new devm_of_phy_optional_get() helper instead of open-coding the > same operation. > > As devm_of_phy_optional_get() returns NULL if either the PHY cannot be > found, or if support for the PHY framework is not enabled, it is no > longer needed to check for -ENODEV or -ENOSYS. > > This lets us drop several checks for IS_ERR(), as phy_power_{on,off}() > handle NULL parameters fine. > > Signed-off-by: Geert Uytterhoeven > Reviewed-by: Greg Kroah-Hartman Acked-by: Greg Kroah-Hartman