From patchwork Wed Oct 25 14:15:01 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Benjamin Gaignard X-Patchwork-Id: 10026781 X-Patchwork-Delegate: agross@codeaurora.org Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 570386032C for ; Wed, 25 Oct 2017 14:15:15 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4419328BA1 for ; Wed, 25 Oct 2017 14:15:15 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 37DDA28BA9; Wed, 25 Oct 2017 14:15:15 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.3 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DC4F528BA1 for ; Wed, 25 Oct 2017 14:15:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751407AbdJYOPI (ORCPT ); Wed, 25 Oct 2017 10:15:08 -0400 Received: from mail-wm0-f67.google.com ([74.125.82.67]:55565 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751557AbdJYOPH (ORCPT ); Wed, 25 Oct 2017 10:15:07 -0400 Received: by mail-wm0-f67.google.com with SMTP id u138so2255713wmu.4 for ; Wed, 25 Oct 2017 07:15:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=l7OK6NtIumiwVPX9u9LKC98Mb2ttUVcQ68V04TOlhZ0=; b=Pdv/aZXhVw736tYViH8f787XGSbimpIThDKvfD1SNoQniawMv/G4SSzuKcpMk2zuKz ExsZlLt6MHVNneiSnX+djmbdTZ+W2h9lRaFRzIKRbZN1axT39zkCh8Po2HFqJekTxSHU xFPkJqRo3qvvI79uABDg9s826RPKMaOM+myWc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=l7OK6NtIumiwVPX9u9LKC98Mb2ttUVcQ68V04TOlhZ0=; b=uM0bY4rgvwh4JCNBI2X+VVvqm1PCxj06+0EkzA1utf645l/jVCtaTFGQA664/FkykI 1E/4xQyLNFHjkbgy31i+LjSw4HgbSXdID/+/U9KIs1dZt7eY2wdzFZla9gQLuSAe5Y9S kHP552g4wNuVVkX1+yTgZ7Cys581dMGpKUmAkEVckg5WYoffrFQ+/mCcVAr5wMGvrNql wPBDA/5AZ2HOZvpCkK9FoE5gt1QragVmVnvXL8sdK7l8Fcw2g7ibKLRtj9fSmo6jj2r8 M982KbKZIFYrEORbn6Gyh2ZymmqGcv8Fb+8tCUIfk8rROminQVaRd+ipJdSEps9WiwVM jx7g== X-Gm-Message-State: AMCzsaU46F2MKdyO92ou3+qocTdHjWwvvHRhNObQ5l2tZAtgKdL8qIl3 V5NTJlr3dnzkLsufYVa6dgj8rg== X-Google-Smtp-Source: ABhQp+TNRDkQauPzqSLqLQCuRzXW7mkmVaFGWGwtCcYmksoOJ1cavapeh9hHbYVbPEyl62tTyP98kg== X-Received: by 10.28.22.82 with SMTP id 79mr2169912wmw.70.1508940905773; Wed, 25 Oct 2017 07:15:05 -0700 (PDT) Received: from lmecxl0911.lme.st.com ([80.215.109.26]) by smtp.gmail.com with ESMTPSA id x73sm2656497wme.34.2017.10.25.07.15.04 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 25 Oct 2017 07:15:05 -0700 (PDT) From: Benjamin Gaignard To: andy.gross@linaro.org, david.brown@linaro.org, lee.jones@linaro.org Cc: linux-arm-msm@vger.kernel.org, linux-soc@vger.kernel.org, linux-kernel@vger.kernel.org, Benjamin Gaignard Subject: [PATCH] mfd: ssbi: Use devm_of_platform_populate() Date: Wed, 25 Oct 2017 16:15:01 +0200 Message-Id: <1508940901-3994-1-git-send-email-benjamin.gaignard@linaro.org> X-Mailer: git-send-email 2.7.4 Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Use devm_of_platform_populate() instead of of_platform_populate() to be sure that of_platform_depopulate() is called when removing the driver. Signed-off-by: Benjamin Gaignard --- drivers/mfd/ssbi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mfd/ssbi.c b/drivers/mfd/ssbi.c index 27986f6..36b96fe 100644 --- a/drivers/mfd/ssbi.c +++ b/drivers/mfd/ssbi.c @@ -314,7 +314,7 @@ static int ssbi_probe(struct platform_device *pdev) spin_lock_init(&ssbi->lock); - return of_platform_populate(np, NULL, NULL, &pdev->dev); + return devm_of_platform_populate(&pdev->dev); } static const struct of_device_id ssbi_match_table[] = {