Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759430Ab2J3Tjs (ORCPT ); Tue, 30 Oct 2012 15:39:48 -0400 Received: from mho-03-ewr.mailhop.org ([204.13.248.66]:22709 "EHLO mho-01-ewr.mailhop.org" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752761Ab2J3Tjq (ORCPT ); Tue, 30 Oct 2012 15:39:46 -0400 X-Mail-Handler: Dyn Standard SMTP by Dyn X-Originating-IP: 98.234.237.12 X-Report-Abuse-To: abuse@dyndns.com (see http://www.dyndns.com/services/sendlabs/outbound_abuse.html for abuse reporting information) X-MHO-User: U2FsdGVkX1/5CdNsAlDq60yS8EeDWmzn Date: Tue, 30 Oct 2012 12:39:40 -0700 From: Tony Lindgren To: Pantelis Antoniou Cc: linux-arm-kernel@lists.infradead.org, devicetree-discuss@lists.ozlabs.org, linux-kernel@vger.kernel.org, Koen Kooi , Matt Porter , Russ Dill , linux-omap@vger.kernel.org Subject: Re: [RFC 2/7] capebus: Add beaglebone board support Message-ID: <20121030193939.GR11908@atomide.com> References: <1351702333-8456-1-git-send-email-panto@antoniou-consulting.com> <1351702333-8456-3-git-send-email-panto@antoniou-consulting.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1351702333-8456-3-git-send-email-panto@antoniou-consulting.com> User-Agent: Mutt/1.5.20 (2009-06-14) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 929 Lines: 29 * Pantelis Antoniou [121030 12:00]: > + > + priv->lcdc_oh = omap_hwmod_lookup("lcdc"); > + if (priv->lcdc_oh == NULL) { > + dev_err(&pdev->dev, "Failed to lookup omap_hwmod lcdc\n"); > + return -ENODEV; > + } > + > + priv->lcdc_pdev = omap_device_build("da8xx_lcdc", 0, priv->lcdc_oh, > + &priv->lcd_pdata, > + sizeof(struct da8xx_lcdc_platform_data), > + NULL, 0, 0); > + if (priv->lcdc_pdev == NULL) { > + dev_err(&pdev->dev, "Failed to build LCDC device\n"); > + return -ENODEV; > + } ..and these kind of things need to become private to arch/arm/mach-omap2, we already have it working for other devices with device tree. Regards, Tony -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/