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: 117126 Delivered-To: patch@linaro.org Received: by 10.140.22.164 with SMTP id 33csp900200qgn; Wed, 25 Oct 2017 07:15:10 -0700 (PDT) X-Google-Smtp-Source: ABhQp+SkZCiezi5nRBqQeWQv/ZcCYQrDSEAO9BBRA1PhwpOS23qhrMYStX8p8cc2+nLdaUhIAEm6 X-Received: by 10.98.31.135 with SMTP id l7mr2374818pfj.326.1508940910525; Wed, 25 Oct 2017 07:15:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1508940910; cv=none; d=google.com; s=arc-20160816; b=uryQdxJrMujV+x7Rk+Xjrk3pmzpJqToYJ5Hjo722WqHS2mlm8cdCgkyj9x5IwwDcRR uF22MjQZ/cgK1Q+1ZF2z2NkRslgRyI92a2UWF9yf7ebb1x4aKunM7Elv1J51FGh6u7Mc DbY1gXB7ahLGFAPbPGjWkC2EHYW0Cpg9nUKU6kWjQZIEXdvxR8AtUKAcjL26hUV98IJL yPVM7f438qyFbw+zS5Knp2g+dXyiIci5HwJW+w56k8z4+Qqxvhf3McgGBPuUpCEBRFjA P5SI2vcCQWoRdFUEPgGREsccPGJTcZKGQ2oarw130ZARCz/SpsUAJ8ZF/Hv3mD5qe3Zw 40qQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=l7OK6NtIumiwVPX9u9LKC98Mb2ttUVcQ68V04TOlhZ0=; b=ZTrkGA7fWbN7eITS4jFRcceuOKuq4In9hapOkDGkQ/UYxQhNXmhfmDRQr1EHlgnBgr Xus/vNq5pWtBmxPolLLuNkhUQoEMPGDzfQOxASd8nFx7XbSC9ddlYPhIsOegoEDYJlnF iY1RzrwqL+JJanKroHtYyNWiF4nJldheDEaZnq3Ewut0QicFfl8YJiyjwZP0/HDNzA9w eAqWzfRe3khWJMz9povXOIpQfb4Eig+I3EuZbXf5Ru5xpLqxC/Svk0mqbkpHS11G6UY1 LpdAeoxUyDNoWTyhO6ab5Kx1JoVsWd2tfsLXwyydvjLJvyNOmgcmG0lJKkD2lm0tLsmr ZHgQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Pdv/aZXh; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c25si1885315pgn.265.2017.10.25.07.15.10; Wed, 25 Oct 2017 07:15:10 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Pdv/aZXh; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751911AbdJYOPJ (ORCPT + 27 others); Wed, 25 Oct 2017 10:15:09 -0400 Received: from mail-wm0-f67.google.com ([74.125.82.67]:57017 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751477AbdJYOPH (ORCPT ); Wed, 25 Oct 2017 10:15:07 -0400 Received: by mail-wm0-f67.google.com with SMTP id z3so2245992wme.5 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=Uued1/QmDffe+FBRdtikmWIxk4rYJaQQEXla/zpuJ85q9KN+6RE9kETyc1M5At+63a /0XXfHxJq3Yj3VockExUWBplcy/xhKI2Ial+xnxkkuYdtlUi4eWkakSzId3qbr64Wp1/ jodyIwnG3sXMkq8rFpiPWFlWV5DFTd0OF5zLnefRUbvdQ+yDe3XBO5olTg5uQlLtBvaj ed0NZwlANzmuMtfMp1FKetGtWElU6pYp3U1EuCSTb0BnDN549NXzvvKUlXXxkmYZhCaB 6r4V0L3+sYNZi5d8uFTUOEtQM35SWSfeGUzXB2zvFAd96ATCb8adt5+i25cwTb2IXdu/ fWYw== X-Gm-Message-State: AMCzsaXVdhVtcWK2X4i5jaSSG+d0xD8A5+k8AxELU9MWLmaNlpW/6RrJ BTVZM+okyfmddVienG9Ndy/bkQ== 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-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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(-) -- 2.7.4 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[] = {