From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pf0-x243.google.com (mail-pf0-x243.google.com [IPv6:2607:f8b0:400e:c00::243]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id C54FF20356887 for ; Wed, 15 Nov 2017 09:47:53 -0800 (PST) Received: by mail-pf0-x243.google.com with SMTP id x7so17548336pfa.1 for ; Wed, 15 Nov 2017 09:52:02 -0800 (PST) From: Oliver O'Halloran Subject: [PATCH 3/3] powerpc/powernv: Create platform devs for nvdimm buses Date: Thu, 16 Nov 2017 04:51:31 +1100 Message-Id: <20171115175131.23631-3-oohall@gmail.com> In-Reply-To: <20171115175131.23631-1-oohall@gmail.com> References: <20171115175131.23631-1-oohall@gmail.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: linux-nvdimm-bounces@lists.01.org Sender: "Linux-nvdimm" To: linuxppc-dev@lists.ozlabs.org Cc: linux-nvdimm@lists.01.org List-ID: Scan the devicetree for an nvdimm-bus compatible and create a platform device for them. Signed-off-by: Oliver O'Halloran --- arch/powerpc/platforms/powernv/opal.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/powerpc/platforms/powernv/opal.c b/arch/powerpc/platforms/powernv/opal.c index 65c79ecf5a4d..32df0d44f086 100644 --- a/arch/powerpc/platforms/powernv/opal.c +++ b/arch/powerpc/platforms/powernv/opal.c @@ -831,6 +831,9 @@ static int __init opal_init(void) /* Create i2c platform devices */ opal_pdev_init("ibm,opal-i2c"); + /* Handle non-volatile memory devices */ + opal_pdev_init("nvdimm-bus"); + /* Setup a heatbeat thread if requested by OPAL */ opal_init_heartbeat(); -- 2.9.5 _______________________________________________ Linux-nvdimm mailing list Linux-nvdimm@lists.01.org https://lists.01.org/mailman/listinfo/linux-nvdimm