From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stephen Warren Subject: Re: [PATCH 1/1] iommu/tegra: Add device tree support for SMMU Date: Fri, 13 Apr 2012 13:35:06 -0600 Message-ID: <4F887FEA.8030603@wwwdotorg.org> References: <20120413.132331.971155172093927884.hdoyu@nvidia.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20120413.132331.971155172093927884.hdoyu-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org> Sender: linux-tegra-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Hiroshi Doyu Cc: "iommu-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org" , "linux-tegra-u79uwXL29TY76Z2rM5mHXA@public.gmane.org" , "devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org" List-Id: devicetree@vger.kernel.org On 04/13/2012 04:23 AM, Hiroshi Doyu wrote: > From: Hiroshi DOYU > > Add device tree support for Tegra30 IOMMU(SMMU). > diff --git a/drivers/iommu/tegra-smmu.c b/drivers/iommu/tegra-smmu.c > +#ifdef CONFIG_OF > +static struct of_device_id tegra_smmu_of_match[] __devinitdata = { > + { .compatible = "nvidia,tegra30-smmu", }, > + { }, > +}; > +#endif You probably want to add the following here, inside the ifdef: MODULE_DEVICE_TABLE(of, tegra_smmu_of_match);