From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jean Pihet Subject: [PATCH 18/21] arm: omap: smartreflex: add missing platform_set_drvdata() Date: Wed, 25 Jan 2012 16:16:20 +0100 Message-ID: <1327504583-13408-19-git-send-email-j-pihet@ti.com> References: <1327504583-13408-1-git-send-email-j-pihet@ti.com> Mime-Version: 1.0 Return-path: Received: from mail-we0-f174.google.com ([74.125.82.174]:53734 "EHLO mail-we0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753762Ab2AYPRQ (ORCPT ); Wed, 25 Jan 2012 10:17:16 -0500 Received: by mail-we0-f174.google.com with SMTP id b13so3871040wer.19 for ; Wed, 25 Jan 2012 07:17:15 -0800 (PST) In-Reply-To: <1327504583-13408-1-git-send-email-j-pihet@ti.com> Sender: linux-omap-owner@vger.kernel.org List-Id: linux-omap@vger.kernel.org To: linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org, balbi@ti.com, nm@ti.com Cc: Kevin Hilman , Paul Walmsley , Jean Pihet From: Felipe Balbi that's very useful to fetch the correct struct sr_info from PM handlers. Signed-off-by: Felipe Balbi Signed-off-by: Jean Pihet --- arch/arm/mach-omap2/smartreflex.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/arch/arm/mach-omap2/smartreflex.c b/arch/arm/mach-omap2/smartreflex.c index 65e1a7c..eacf4b3 100644 --- a/arch/arm/mach-omap2/smartreflex.c +++ b/arch/arm/mach-omap2/smartreflex.c @@ -1062,6 +1062,8 @@ static int __init omap_sr_probe(struct platform_device *pdev) return -ENOMEM; } + platform_set_drvdata(pdev, sr_info); + if (!pdata) { dev_err(&pdev->dev, "%s: platform data missing\n", __func__); ret = -EINVAL; -- 1.7.5.4