Message ID | 20180424173051.15099-2-brgl@bgdev.pl (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org> 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 CBA09601BE for <patchwork-linux-arm@patchwork.kernel.org>; Tue, 24 Apr 2018 17:34:11 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B407B28E7A for <patchwork-linux-arm@patchwork.kernel.org>; Tue, 24 Apr 2018 17:34:11 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A89C328E8F; Tue, 24 Apr 2018 17:34:11 +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 A7BFF28E7A for <patchwork-linux-arm@patchwork.kernel.org>; Tue, 24 Apr 2018 17:34:10 +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=nHaBnNYgRdOZnbf3X/captUe5ZUGOitPcxwI+GUjdNk=; b=MsPzXkKvOY0RCws3CvtY0kHWwP z0xkKXNk4N3RnXkKwNnfUoPy7yRcNXB7Iy3kEKjFDTmn+NPitUL0J9zjdIhMiAfhVRo+FJJhwa9K6 x1u4Kx2flVTN7zSc7ZoSfxNU75H6bHmsQHef+dPXuRi48bZbGuESurEsGoTrnQ6DUkZLx6OTT5yBy ku6i15jPZJuwcz2ftHqlptjKmoJiI06pyEW9tx6wjW9D/etWxqdJh8vd7rj6RdLpbW//17CQ1EHWF W9p12Bq9LtWYHYQcZfENyBPIoO4/SEPBSIVN4x7pDZvvu5ypXyH4kbOA64IvUocpmWfWmuyq743Bv iDJ04kng==; 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 1fB1pK-0007In-IZ; Tue, 24 Apr 2018 17:34:02 +0000 Received: from mail-wm0-x243.google.com ([2a00:1450:400c:c09::243]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fB1ml-0006E9-Uo for linux-arm-kernel@lists.infradead.org; Tue, 24 Apr 2018 17:31:26 +0000 Received: by mail-wm0-x243.google.com with SMTP id t67so2599969wmt.0 for <linux-arm-kernel@lists.infradead.org>; Tue, 24 Apr 2018 10:31:13 -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=TLphgLDITGLWBW8+v0MCFaYzGJJYv3PJMes+2gWVaNQ=; b=Aoc4iZ36m0ZMJrFsOTzVNR3Dx13K9hnCP11ZHuqf/Najak77M4UfOOqbwaotDHY6Mb ZmVFKs4OHbh6WsZptB4EQ51fB++xFA5GpUGZ6RqsQHV2QPD7IuK+R9vnC/WrKLFl11ct Dhs/fDqeAzUf5dYpzLhBFqUzVUJPdWru3Ginjio5TMShH+El+I+uCY7zQ3Cs66yCgisN R4SITenGEDKtd6SLjdKfAA8Q9l/bHn3sbgnVpGcy8mYZv4hblkJC7vB5hFJNIeeWyGqR n2TnFVQ7qgdjmPCFO00vOGRxrOjMaJgSvrRBeGG2nv5OsWXUzP8nBhISvUnWO08ZznJQ W9Eg== 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=TLphgLDITGLWBW8+v0MCFaYzGJJYv3PJMes+2gWVaNQ=; b=pNZWUWLaRV6JgXRxySmYvAFhzJg4TaaVDpV1r+iji8Buzs1k+HoL+d/FuP5ZjtIS5j 4Z0UYkb6MTh/XZOM/YjUFsZD9TojT4I4zMpQtcEqbRoAqxjEikTTsDdjpjJp4fWU5d8U Vp12fJuRhFyhK8rBGG7f42oE+VmfHs3iViw02WEfUBssIrXxuzcVQckw8a3lePEkGKek 1t1hExgIOwV8o+zlDZRkG5oD+RtOVEnXF+4bUTC1bfav4PTFzkG8NSBnY2FDuL/1fnjU 0VBnbs92W5rEw5bwovKeK2giIcOhwYJ+009P0PEhs1hZd0SHEJ2ptL8fHBip4RyauDQE 1ejA== X-Gm-Message-State: ALQs6tAjNOvS8JFk/R+jrYnnDA2YFnhFcsSXR8SIlqnkyfVYKYN5/amS piDGpCM2bOsUWvwWOrFQQB6yEw== X-Google-Smtp-Source: AIpwx4/D7Z+9ziV8Vnr7+pvtpIfwMHSN/5f5TgEGvuZkYydExoAYPkkaPcCuY237yzEfVRDk/WRlBQ== X-Received: by 10.28.74.91 with SMTP id x88mr13749214wma.53.1524591072440; Tue, 24 Apr 2018 10:31:12 -0700 (PDT) Received: from brgl-bgdev.baylibre.local ([90.63.244.31]) by smtp.gmail.com with ESMTPSA id n21sm15513826wmi.37.2018.04.24.10.31.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 24 Apr 2018 10:31:11 -0700 (PDT) From: Bartosz Golaszewski <brgl@bgdev.pl> To: Sekhar Nori <nsekhar@ti.com>, Kevin Hilman <khilman@kernel.org>, David Lechner <david@lechnology.com>, Michael Turquette <mturquette@baylibre.com>, Stephen Boyd <sboyd@kernel.org>, Arnd Bergmann <arnd@arndb.de>, Greg Kroah-Hartman <gregkh@linuxfoundation.org>, Rob Herring <robh+dt@kernel.org>, Mark Rutland <mark.rutland@arm.com>, Yoshinori Sato <ysato@users.sourceforge.jp>, Rich Felker <dalias@libc.org>, Frank Rowand <frowand.list@gmail.com>, "Rafael J . Wysocki" <rafael.j.wysocki@intel.com>, Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>, Dmitry Torokhov <dmitry.torokhov@gmail.com>, Arend van Spriel <aspriel@gmail.com>, Heikki Krogerus <heikki.krogerus@linux.intel.com>, Michal Suchanek <msuchanek@suse.de>, Jan Kiszka <jan.kiszka@siemens.com>, Andy Shevchenko <andy.shevchenko@gmail.com> Subject: [PATCH 01/11] platform: early: provide early_platform_add_device() Date: Tue, 24 Apr 2018 19:30:41 +0200 Message-Id: <20180424173051.15099-2-brgl@bgdev.pl> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180424173051.15099-1-brgl@bgdev.pl> References: <20180424173051.15099-1-brgl@bgdev.pl> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180424_103124_022799_38911EFA X-CRM114-Status: GOOD ( 12.87 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Bartosz Golaszewski <bgolaszewski@baylibre.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/include/linux/platform_device.h b/include/linux/platform_device.h index 49f634d96118..80942ed0f728 100644 --- a/include/linux/platform_device.h +++ b/include/linux/platform_device.h @@ -301,6 +301,11 @@ extern int early_platform_driver_register(struct early_platform_driver *epdrv, char *buf); extern void early_platform_add_devices(struct platform_device **devs, int num); +static inline void early_platform_add_device(struct platform_device *pdev) +{ + early_platform_add_devices(&pdev, 1); +} + static inline int is_early_platform_device(struct platform_device *pdev) { return !pdev->dev.driver;