From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-pa0-x241.google.com ([2607:f8b0:400e:c03::241]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1bNZsF-0006dN-6D for barebox@lists.infradead.org; Thu, 14 Jul 2016 06:11:53 +0000 Received: by mail-pa0-x241.google.com with SMTP id ez1so708314pab.3 for ; Wed, 13 Jul 2016 23:11:32 -0700 (PDT) From: Andrey Smirnov Date: Wed, 13 Jul 2016 23:11:05 -0700 Message-Id: <1468476665-26409-7-git-send-email-andrew.smirnov@gmail.com> In-Reply-To: <1468476665-26409-1-git-send-email-andrew.smirnov@gmail.com> References: <1468476665-26409-1-git-send-email-andrew.smirnov@gmail.com> List-Id: 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 Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: [PATCH 7/7] i.MX: ocotp: Register regmap against orignal device To: barebox@lists.infradead.org Cc: Andrey Smirnov , Trent Piepho Register regmap against orignal device passed to probe, this way further in the code/call-chain cdev's device_node will be correctly populated and it will be discoverable via cdev_by_device_node() Signed-off-by: Andrey Smirnov --- Sascha, Trent, why do you guys keep hiding that OCOTP chardev from my imx_thermal driver? :-D arch/arm/mach-imx/ocotp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-imx/ocotp.c b/arch/arm/mach-imx/ocotp.c index 1dc9108..17b944b 100644 --- a/arch/arm/mach-imx/ocotp.c +++ b/arch/arm/mach-imx/ocotp.c @@ -404,7 +404,7 @@ static int imx_ocotp_probe(struct device_d *dev) priv->map_config.reg_stride = 4; priv->map_config.max_register = data->num_regs - 1; - priv->map = regmap_init(&priv->dev, &imx_ocotp_regmap_bus, priv, &priv->map_config); + priv->map = regmap_init(dev, &imx_ocotp_regmap_bus, priv, &priv->map_config); if (IS_ERR(priv->map)) return PTR_ERR(priv->map); -- 2.5.5 _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox