From patchwork Fri May 11 16:20:21 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 10394685 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 6B7FE60236 for ; Fri, 11 May 2018 16:25:34 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0602628F4E for ; Fri, 11 May 2018 16:25:34 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id EE68D28F50; Fri, 11 May 2018 16:25:33 +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=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 6701828F4E for ; Fri, 11 May 2018 16:25:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=9QqAjKm5tDsMHj/Pc2H6qd6mQX0i330in5I76KRoptk=; b=dgVY1CbRX+NWwAJGJWV5NcUKR6 IMcGFqNHbSxmuxcJ8n7QMoiYJyoTz3M51KXN5rOK3M10RNeR2xY21QldaCs0pn/eDZs6TfD9iLhMs EopGKN+TZaC6v0R+RbQXSoP5OyEUtCsKQnwHeGRpDDlOpPmXfA6884yRIe0WHJtQc/smBKBssRwe+ XXY/SH9doRX7BvAJKGoX80POc5UOHIyxchCY2xe4VxUrPEFtCncnCd3EP3KtnMClGJ1OInHtdp3Jy An+aE2IWOAndGygPkBaE5a/ZzmhGZlq9VZJrCbsL4AtuHMCXgAzkE+HGS5TdJB9OdJHpb2gv1GtoI SAkfDn+Q==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fHArB-0004ht-T1; Fri, 11 May 2018 16:25:22 +0000 Received: from mail-wr0-x241.google.com ([2a00:1450:400c:c0c::241]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fHAnf-0002gB-Re for linux-arm-kernel@lists.infradead.org; Fri, 11 May 2018 16:21:45 +0000 Received: by mail-wr0-x241.google.com with SMTP id y15-v6so5879578wrg.11 for ; Fri, 11 May 2018 09:21:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=Xx5bf17I+YRxeOm/wYW65n//55hQ3kDnwNntVF/ZIko=; b=IzTje0+vOvB7o+OJzQGTGmqh0vZWlKXBmZRfNrJGdgRxi9pnEkSR2cH4kLX4oj0DV0 aNB8ihEPJOVYPIXQQqS0j2sjt6oBSZnUbVJbK9hbcdfeTeHCKrpEBy4j4Jp3UOZOZV7c 9EWKK/XosUCQ71hiZZ86R0MdIFbifAwES1BGjY12BFajG1l9Hsglzmz+yk8IteNl2wKH RiwpUxE8ugbY1R5IsEOVMWz/qk1AfveF5JmcOaawsks2l02xJj/GtJ+EC7jTsSD39gcH DKkWzNZF8T1LaCj0FKef4cy50Jc37ldurbHazCGwuPcrmX+96O5cMsHR97kTQXi6tfXe cdQw== 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:in-reply-to :references; bh=Xx5bf17I+YRxeOm/wYW65n//55hQ3kDnwNntVF/ZIko=; b=lSiGEH6pxOSfT1k8QpperVwqDHSjfuzDkE56lL1pSKKuuKem1GbyoQX94Z/3uX43ng dFPXUe8jXwWgHxSpUYEJiBlzR5KWrnOAheMCUUJBAH6wqvYva732xuMbYx4AvFPlIw4z Y4ngc4BkgclEW9ryBxph9IJNoIan+OGThpoWnf0dWkkxqY0jrpi/BtVmdBM6DljuitWj haS8vhiBeqcQa5aL0bR7bDjPtNOEUstUv0xXlu1Z6B60jhzgzZk87BYhzm8TGKIsIoPF GpgZOyUI55Hgif0AFU6VX82SEDeCvvxljrLQlN2h9yErpLtklrpoi6JLG5ttQKFnTvAI ZSKQ== X-Gm-Message-State: ALKqPwesEvInh0GowLVhK9hKF2WEkH6WqlDOZ2m/L95ja13SUoCUtKLi z7cQrKVP+ODN2t8VuRFOK1akPg== X-Google-Smtp-Source: AB8JxZpRvn5r8Ql0ms9vDGBpVqiyG9YCbH+m9Qr0ZQvQPVoK0Nfi2Em1rvj5qJdsmFtKk618qIaxsg== X-Received: by 2002:adf:8248:: with SMTP id 66-v6mr5248147wrb.127.1526055695736; Fri, 11 May 2018 09:21:35 -0700 (PDT) Received: from brgl-bgdev.baylibre.local ([90.63.244.31]) by smtp.gmail.com with ESMTPSA id q17-v6sm1429523wmf.3.2018.05.11.09.21.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 11 May 2018 09:21:35 -0700 (PDT) From: Bartosz Golaszewski To: Sekhar Nori , Kevin Hilman , David Lechner , Michael Turquette , Stephen Boyd , Arnd Bergmann , Greg Kroah-Hartman , Mark Rutland , Yoshinori Sato , Rich Felker , Andy Shevchenko , Marc Zyngier , "Rafael J . Wysocki" , Peter Rosin , Jiri Slaby , Thomas Gleixner , Daniel Lezcano , Geert Uytterhoeven , Magnus Damm , Johan Hovold , Rob Herring , Frank Rowand Subject: [PATCH 05/12] platform: export platform_device_release() locally Date: Fri, 11 May 2018 18:20:21 +0200 Message-Id: <20180511162028.20616-6-brgl@bgdev.pl> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180511162028.20616-1-brgl@bgdev.pl> References: <20180511162028.20616-1-brgl@bgdev.pl> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180511_092143_938679_6C52B785 X-CRM114-Status: GOOD ( 14.74 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-arch@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Bartosz Golaszewski MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP From: Bartosz Golaszewski The early platform driver mechanism will use this function as the device release callback. Make it available in drivers/base. Signed-off-by: Bartosz Golaszewski Reviewed-by: Geert Uytterhoeven --- drivers/base/base.h | 1 + drivers/base/platform.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/base/base.h b/drivers/base/base.h index 7a72ae72a98e..514a6d198f14 100644 --- a/drivers/base/base.h +++ b/drivers/base/base.h @@ -164,3 +164,4 @@ extern void device_links_unbind_consumers(struct device *dev); /* Platform device helpers. */ extern int platform_match(struct device *dev, struct device_driver *drv); +extern void platform_device_release(struct device *dev); diff --git a/drivers/base/platform.c b/drivers/base/platform.c index 0ba4effb9618..417ab6071350 100644 --- a/drivers/base/platform.c +++ b/drivers/base/platform.c @@ -239,7 +239,7 @@ void platform_device_put(struct platform_device *pdev) } EXPORT_SYMBOL_GPL(platform_device_put); -static void platform_device_release(struct device *dev) +void platform_device_release(struct device *dev) { struct platform_object *pa = container_of(dev, struct platform_object, pdev.dev);