From patchwork Thu Apr 9 12:11:54 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kieran Bingham X-Patchwork-Id: 11481677 X-Patchwork-Delegate: kieran@bingham.xyz Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 7D9D917D4 for ; Thu, 9 Apr 2020 12:12:13 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 539BA2078E for ; Thu, 9 Apr 2020 12:12:13 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="Gg0arIRu" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726559AbgDIMMM (ORCPT ); Thu, 9 Apr 2020 08:12:12 -0400 Received: from perceval.ideasonboard.com ([213.167.242.64]:48748 "EHLO perceval.ideasonboard.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726082AbgDIMMM (ORCPT ); Thu, 9 Apr 2020 08:12:12 -0400 Received: from localhost.localdomain (cpc89242-aztw30-2-0-cust488.18-1.cable.virginm.net [86.31.129.233]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 4067913CB; Thu, 9 Apr 2020 14:12:10 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1586434330; bh=rHbDeXJMztOUf1um+41rM5Ol+trow3LDpX1T8XQm69w=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Gg0arIRuqxaDITf1D7mlblhzOfuYbMhJcHYXp7d/1LU3v5i/0NsJ3gZokoo1f83+G 0YHGSp8jozTKsv5wqLVbursx8TmNOZGPNPaeAKMGwVBhTj9whlAmv+/lb/VN61WZ/2 wMsHE04kE/IkbHefw6XUGn0g28Ev+M52o8SeIF2k= From: Kieran Bingham To: linux-renesas-soc@vger.kernel.org, Jacopo Mondi , Laurent Pinchart , =?utf-8?q?Niklas_S?= =?utf-8?q?=C3=B6derlund?= , Hyun Kwon , Manivannan Sadhasivam Cc: Kieran Bingham Subject: [PATCH v8 05/13] squash! max9286: Convert to use devm_regulator_get() Date: Thu, 9 Apr 2020 13:11:54 +0100 Message-Id: <20200409121202.11130-6-kieran.bingham+renesas@ideasonboard.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200409121202.11130-1-kieran.bingham+renesas@ideasonboard.com> References: <20200409121202.11130-1-kieran.bingham+renesas@ideasonboard.com> MIME-Version: 1.0 Sender: linux-renesas-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org - Convert to use devm_regulator_get() --- drivers/media/i2c/max9286.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/i2c/max9286.c b/drivers/media/i2c/max9286.c index d0749c537152..c374078c7001 100644 --- a/drivers/media/i2c/max9286.c +++ b/drivers/media/i2c/max9286.c @@ -1187,7 +1187,7 @@ static int max9286_probe(struct i2c_client *client) if (ret) goto err_powerdown; - priv->regulator = regulator_get(&client->dev, "poc"); + priv->regulator = devm_regulator_get(&client->dev, "poc"); if (IS_ERR(priv->regulator)) { if (PTR_ERR(priv->regulator) != -EPROBE_DEFER) dev_err(&client->dev,