From: galak@codeaurora.org (Kumar Gala) Date: Thu, 12 Jun 2014 16:23:06 -0500 Subject: [PATCH 2/3] ata: Add Qualcomm ARM SoC AHCI SATA host controller driver In-Reply-To: <539A047B.3010306@codeaurora.org> References: <1402600404-19214-1-git-send-email-galak@codeaurora.org> <1402600404-19214-2-git-send-email-galak@codeaurora.org> <539A047B.3010306@codeaurora.org> Message-ID: <8C69AEA0-877D-4198-BAD4-393695FBC94E@codeaurora.org> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On Jun 12, 2014, at 2:50 PM, Stephen Boyd wrote: > On 06/12/14 12:13, Kumar Gala wrote: >> +static int qcom_ahci_probe(struct platform_device *pdev) >> +{ >> + struct ahci_host_priv *hpriv; >> + struct clk *rxoob_clk; >> + int rc; >> + >> + hpriv = ahci_platform_get_resources(pdev); >> + if (IS_ERR(hpriv)) >> + return PTR_ERR(hpriv); >> + >> + /* Try and set the rxoob clk to 100Mhz */ >> + rxoob_clk = of_clk_get_by_name(pdev->dev.of_node, "rxoob"); > > Any reason we can't use devm_clk_get() here? Was trying to avoid the ref cnt of devm_clk_get() as the clk?s are actually handled in ahci_platform_get_resources/ahci_platform_enable_resources - k -- Employee of Qualcomm Innovation Center, Inc. Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation