From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752969Ab1JXDhq (ORCPT ); Sun, 23 Oct 2011 23:37:46 -0400 Received: from mga01.intel.com ([192.55.52.88]:62708 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752816Ab1JXDhp (ORCPT ); Sun, 23 Oct 2011 23:37:45 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.69,396,1315206000"; d="scan'208";a="81006032" Subject: Re: [PATCH v3 0/4] dmaengine: Device Tree support for Atmel DMA From: Vinod Koul To: Nicolas Ferre , robherring2@gmail.com Cc: linux-arm-kernel@lists.infradead.org, devicetree-discuss@lists.ozlabs.org, linux-kernel@vger.kernel.org In-Reply-To: <4E9C258D.3030509@atmel.com> References: <1318438634-11826-1-git-send-email-nicolas.ferre@atmel.com> <4E9C258D.3030509@atmel.com> Content-Type: text/plain; charset="UTF-8" Date: Mon, 24 Oct 2011 08:58:24 +0530 Message-ID: <1319426904.9355.40.camel@vkoul-udesk3> Mime-Version: 1.0 X-Mailer: Evolution 2.28.3 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 2011-10-17 at 14:54 +0200, Nicolas Ferre wrote: > On 10/12/2011 06:57 PM, Nicolas Ferre : > > This series add the device tree support to Atmel DMA controller driver: > > at_hdmac. > > The removal of platform data ease the conversion to device tree. It also have > > the additional benefit of being simpler and cleaner. > > > > Nicolas Ferre (4): > > dmaengine: at_hdmac: platform data move to use .id_table > > dmaengine: at_hdmac: add device tree support > > ARM: at91/dma: remove platform data from DMA controller > > ARM: at91/dma: DMA controller registering with DT support > > > > .../devicetree/bindings/dma/atmel-dma.txt | 14 ++++ > > arch/arm/mach-at91/at91sam9g45_devices.c | 17 ++--- > > arch/arm/mach-at91/at91sam9rl_devices.c | 8 +-- > > arch/arm/mach-at91/include/mach/at_hdmac.h | 10 --- > > drivers/dma/at_hdmac.c | 76 +++++++++++++++++--- > > drivers/dma/at_hdmac_regs.h | 8 ++ > > 6 files changed, 97 insertions(+), 36 deletions(-) > > create mode 100644 Documentation/devicetree/bindings/dma/atmel-dma.txt > > Vinod, > > I have just rebased the dmaengine at_hdmac driver patches on top of your > "next" branch as a "v4" series. I send it to you with Grant's "Acked-by" > right now. I manged to fail the compliation with this patch drivers/dma/at_hdmac.c: In function 'at_dma_get_driver_data': drivers/dma/at_hdmac.c:1211: error: implicit declaration of function 'of_match_node' drivers/dma/at_hdmac.c:1211: error: 'atmel_dma_dt_ids' undeclared (first use in this function) drivers/dma/at_hdmac.c:1211: error: (Each undeclared identifier is reported only once drivers/dma/at_hdmac.c:1211: error: for each function it appears in.) drivers/dma/at_hdmac.c:1211: warning: assignment makes pointer from integer without a cast drivers/dma/at_hdmac.c: At top level: drivers/dma/at_hdmac.c:1558: error: implicit declaration of function 'of_match_ptr' drivers/dma/at_hdmac.c:1558: error: 'atmel_dma_dt_ids' undeclared here (not in a function) drivers/dma/at_hdmac.c:1558: error: initializer element is not constant drivers/dma/at_hdmac.c:1558: error: (near initialization for 'at_dma_driver.driver.of_match_table') make[1]: *** [drivers/dma/at_hdmac.o] Error 1 Which, IMO are triggered as one of my configs for at_hdmac did not have CONFIG_OF enabled. I think at_hdmac should select or depend on this. I did latter and still I get compilation error :( drivers/dma/at_hdmac.c:1558: error: implicit declaration of function 'of_match_ptr' drivers/dma/at_hdmac.c:1558: error: initializer element is not constant drivers/dma/at_hdmac.c:1558: error: (near initialization for 'at_dma_driver.driver.of_match_table') make[1]: *** [drivers/dma/at_hdmac.o] Error 1 -- ~Vinod