Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759194Ab2JaRZz (ORCPT ); Wed, 31 Oct 2012 13:25:55 -0400 Received: from li42-95.members.linode.com ([209.123.162.95]:57334 "EHLO li42-95.members.linode.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758752Ab2JaRZD (ORCPT ); Wed, 31 Oct 2012 13:25:03 -0400 From: Pantelis Antoniou To: Tony Lindgren Cc: Pantelis Antoniou , linux-kernel@vger.kernel.org, Koen Kooi , Matt Porter , Russ Dill , linux-omap@vger.kernel.org Subject: [PATCH 2/3] da8xx-dt: Create da8xx DT adapter device Date: Thu, 1 Nov 2012 17:18:01 +0200 Message-Id: <1351783082-11411-3-git-send-email-panto@antoniou-consulting.com> X-Mailer: git-send-email 1.7.12 In-Reply-To: <1351783082-11411-1-git-send-email-panto@antoniou-consulting.com> References: <1351783082-11411-1-git-send-email-panto@antoniou-consulting.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 6816 Lines: 236 omap_device is going private. Move the da8xx-dt adapter device to arch/arm/mach-omap2. Signed-off-by: Pantelis Antoniou --- arch/arm/mach-omap2/Makefile | 3 + arch/arm/mach-omap2/da8xx-dt.c | 197 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 200 insertions(+) create mode 100644 arch/arm/mach-omap2/da8xx-dt.c diff --git a/arch/arm/mach-omap2/Makefile b/arch/arm/mach-omap2/Makefile index fe40d9e..3a9a0ff 100644 --- a/arch/arm/mach-omap2/Makefile +++ b/arch/arm/mach-omap2/Makefile @@ -200,6 +200,9 @@ ifneq ($(CONFIG_DRM_OMAP),) obj-y += drm.o endif +# AM3XX Device Tree adapters for legacy drivers +obj-$(CONFIG_SOC_AM33XX) += da8xx-dt.o + # Specific board support obj-$(CONFIG_MACH_OMAP_GENERIC) += board-generic.o obj-$(CONFIG_MACH_OMAP_H4) += board-h4.o diff --git a/arch/arm/mach-omap2/da8xx-dt.c b/arch/arm/mach-omap2/da8xx-dt.c new file mode 100644 index 0000000..d3c6f48 --- /dev/null +++ b/arch/arm/mach-omap2/da8xx-dt.c @@ -0,0 +1,197 @@ +/* + * DA8XX-DT: Device tree adapter using the legacy driver + * + * Copyright (C) 2012 Pantelis Antoniou + * Copyright (C) 2012 Texas Instruments Inc. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + */ + +#include +#include +#include +#include +#include +#include +#include +#include +#include