From patchwork Wed Feb 3 15:03:57 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guennadi Liakhovetski X-Patchwork-Id: 76712 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o13F3R1d004986 for ; Wed, 3 Feb 2010 15:03:42 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755201Ab0BCPDm (ORCPT ); Wed, 3 Feb 2010 10:03:42 -0500 Received: from mail.gmx.net ([213.165.64.20]:43666 "HELO mail.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1754635Ab0BCPDl (ORCPT ); Wed, 3 Feb 2010 10:03:41 -0500 Received: (qmail invoked by alias); 03 Feb 2010 15:03:39 -0000 Received: from p57BD1A11.dip0.t-ipconnect.de (EHLO axis700.grange) [87.189.26.17] by mail.gmx.net (mp053) with SMTP; 03 Feb 2010 16:03:39 +0100 X-Authenticated: #20450766 X-Provags-ID: V01U2FsdGVkX189r7Eu5kA9cw5uhnYuVLOji3mzkzfpV53ZfsvifX fZ1av3Wj0JJz+p Received: from lyakh (helo=localhost) by axis700.grange with local-esmtp (Exim 4.63) (envelope-from ) id 1Ncglp-0004Jd-Pc; Wed, 03 Feb 2010 16:03:57 +0100 Date: Wed, 3 Feb 2010 16:03:57 +0100 (CET) From: Guennadi Liakhovetski To: "linux-sh@vger.kernel.org" cc: Dan Williams , Paul Mundt Subject: [PATCH 4/4] sh: activate runtime PM for dmaengine on sh7722 and sh7724 In-Reply-To: Message-ID: References: MIME-Version: 1.0 X-Y-GMX-Trusted: 0 X-FuHaFi: 0.57999999999999996 Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Wed, 03 Feb 2010 15:03:42 +0000 (UTC) diff --git a/arch/sh/kernel/cpu/sh4a/setup-sh7722.c b/arch/sh/kernel/cpu/sh4a/setup-sh7722.c index 5d7dc19..0ae9855 100644 --- a/arch/sh/kernel/cpu/sh4a/setup-sh7722.c +++ b/arch/sh/kernel/cpu/sh4a/setup-sh7722.c @@ -145,6 +145,9 @@ struct platform_device dma_device = { .dev = { .platform_data = &dma_platform_data, }, + .archdata = { + .hwblk_id = HWBLK_DMAC, + }, }; /* Serial */ diff --git a/arch/sh/kernel/cpu/sh4a/setup-sh7724.c b/arch/sh/kernel/cpu/sh4a/setup-sh7724.c index b692e61..e61063f 100644 --- a/arch/sh/kernel/cpu/sh4a/setup-sh7724.c +++ b/arch/sh/kernel/cpu/sh4a/setup-sh7724.c @@ -156,6 +156,9 @@ static struct platform_device dma0_device = { .dev = { .platform_data = &dma0_platform_data, }, + .archdata = { + .hwblk_id = HWBLK_DMAC0, + }, }; static struct platform_device dma1_device = { @@ -166,6 +169,9 @@ static struct platform_device dma1_device = { .dev = { .platform_data = &dma1_platform_data, }, + .archdata = { + .hwblk_id = HWBLK_DMAC1, + }, }; /* Serial */