From patchwork Fri Aug 12 03:33:12 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kyle Manna X-Patchwork-Id: 1059552 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.4) with ESMTP id p7C3YAaG018588 for ; Fri, 12 Aug 2011 03:34:10 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751167Ab1HLDeJ (ORCPT ); Thu, 11 Aug 2011 23:34:09 -0400 Received: from caiajhbdcagg.dreamhost.com ([208.97.132.66]:44876 "EHLO homiemail-a72.g.dreamhost.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752751Ab1HLDeB (ORCPT ); Thu, 11 Aug 2011 23:34:01 -0400 Received: from homiemail-a72.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a72.g.dreamhost.com (Postfix) with ESMTP id 201696B0070; Thu, 11 Aug 2011 20:34:00 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=kylemanna.com; h=from:to:cc :subject:date:message-id:in-reply-to:references; q=dns; s= kylemanna.com; b=M7P85c/0BkbGPXvVABnoN+XASXG6HM2i9pAwKaKQ1vSlHJR XpgfP6j3gQIabEk4jHuN2gB0LPtYWg8bwgwYUpLUWw9wJx/jdRsKqOsMN5p+jthy KSN5I545yImPs2AOrIA/cbG9Y9ODTt2wuMI9HO2R+wDSonUz+eGjxR+yEBVo= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=kylemanna.com; h=from:to :cc:subject:date:message-id:in-reply-to:references; s= kylemanna.com; bh=RLBvp0gNsRmfLNLp0TanjePfBZQ=; b=Nrbz7yxPnWkrhB DEAWktJ03b88Qpjk8i40JicZEYnCoChTKksfDqL7WNM9KLmKd5ZwJmypgPr1YdTI 22QeYduNmdnsfD3/GQmNk4pDtr0heWRDNz5aP9/G1Lljx37BheXTVFKiW1fMTvYm /F4OzUnUl1ajp6FtOqkq+0VXWGBfQ= Received: from core (cpe-70-116-138-43.tx.res.rr.com [70.116.138.43]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: core@frozenliquid.net) by homiemail-a72.g.dreamhost.com (Postfix) with ESMTPSA id 023816B0059; Thu, 11 Aug 2011 20:34:00 -0700 (PDT) Received: by core (Postfix, from userid 1000) id 0DC2C6808B8; Thu, 11 Aug 2011 22:33:59 -0500 (CDT) From: Kyle Manna To: Tony Lindgren , Russell King , Samuel Ortiz Cc: Keerthy , linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Kyle Manna Subject: [PATCH v2 1/4] mfd: twl4030-madc: copy the device pointer Date: Thu, 11 Aug 2011 22:33:12 -0500 Message-Id: <1313119995-15382-2-git-send-email-kyle@kylemanna.com> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <1313119995-15382-1-git-send-email-kyle@kylemanna.com> References: <1313119995-15382-1-git-send-email-kyle@kylemanna.com> Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Fri, 12 Aug 2011 03:34:10 +0000 (UTC) Worst case this fixes the following error: [ 72.086212] (NULL device *): conversion timeout! Best case it prevents a crash Signed-off-by: Kyle Manna --- drivers/mfd/twl4030-madc.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/drivers/mfd/twl4030-madc.c b/drivers/mfd/twl4030-madc.c index b5d598c..cb44b53 100644 --- a/drivers/mfd/twl4030-madc.c +++ b/drivers/mfd/twl4030-madc.c @@ -706,6 +706,8 @@ static int __devinit twl4030_madc_probe(struct platform_device *pdev) if (!madc) return -ENOMEM; + madc->dev = &pdev->dev; + /* * Phoenix provides 2 interrupt lines. The first one is connected to * the OMAP. The other one can be connected to the other processor such