From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kevin Hilman Subject: Re: [RFC/PATCH 7/7] WIP: HACK/RFC: omap_device: begin to decouple platform_device from omap_device Date: Mon, 01 Aug 2011 15:11:57 -0700 Message-ID: <87pqkon5n6.fsf@ti.com> References: <1311292338-11830-1-git-send-email-khilman@ti.com> <1311292338-11830-9-git-send-email-khilman@ti.com> <20110730120332.GA15539@n2100.arm.linux.org.uk> <20110731025807.GA24334@ponder.secretlab.ca> <20110731150540.GA3019@n2100.arm.linux.org.uk> <871ux5nnop.fsf@ti.com> <20110801185009.GA5217@legolas.emea.dhcp.ti.com> <20110801200743.GA21535@n2100.arm.linux.org.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: In-Reply-To: <20110801200743.GA21535@n2100.arm.linux.org.uk> (Russell King's message of "Mon, 1 Aug 2011 21:07:43 +0100") Sender: linux-omap-owner@vger.kernel.org To: Russell King - ARM Linux Cc: Felipe Balbi , Grant Likely , linux-omap@vger.kernel.org, Paul Walmsley , "G. Manjunath Kondaiah" , devicetree-discuss@lists.ozlabs.org, linux-arm-kernel@lists.infradead.org List-Id: devicetree@vger.kernel.org Russell King - ARM Linux writes: > Help the typechecker do its job. As we have only one (at the moment...) > And make it: > > +struct omap_device; > > struct pdev_archdata { > +#ifdef CONFIG_ARCH_OMAP > + struct omap_device *omap; > +#endif > }; > > for bonus points, so we only get the additional pointer for OMAP. OK, will do it this way. Kevin From mboxrd@z Thu Jan 1 00:00:00 1970 From: khilman@ti.com (Kevin Hilman) Date: Mon, 01 Aug 2011 15:11:57 -0700 Subject: [RFC/PATCH 7/7] WIP: HACK/RFC: omap_device: begin to decouple platform_device from omap_device In-Reply-To: <20110801200743.GA21535@n2100.arm.linux.org.uk> (Russell King's message of "Mon, 1 Aug 2011 21:07:43 +0100") References: <1311292338-11830-1-git-send-email-khilman@ti.com> <1311292338-11830-9-git-send-email-khilman@ti.com> <20110730120332.GA15539@n2100.arm.linux.org.uk> <20110731025807.GA24334@ponder.secretlab.ca> <20110731150540.GA3019@n2100.arm.linux.org.uk> <871ux5nnop.fsf@ti.com> <20110801185009.GA5217@legolas.emea.dhcp.ti.com> <20110801200743.GA21535@n2100.arm.linux.org.uk> Message-ID: <87pqkon5n6.fsf@ti.com> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org Russell King - ARM Linux writes: > Help the typechecker do its job. As we have only one (at the moment...) > And make it: > > +struct omap_device; > > struct pdev_archdata { > +#ifdef CONFIG_ARCH_OMAP > + struct omap_device *omap; > +#endif > }; > > for bonus points, so we only get the additional pointer for OMAP. OK, will do it this way. Kevin