Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754101Ab1BVLWR (ORCPT ); Tue, 22 Feb 2011 06:22:17 -0500 Received: from mail-ew0-f46.google.com ([209.85.215.46]:47816 "EHLO mail-ew0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751860Ab1BVLWQ (ORCPT ); Tue, 22 Feb 2011 06:22:16 -0500 Message-ID: <4D639C18.9010309@mvista.com> Date: Tue, 22 Feb 2011 14:20:56 +0300 From: Sergei Shtylyov User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.2.13) Gecko/20101207 Thunderbird/3.1.7 MIME-Version: 1.0 To: Subhasish Ghosh CC: davinci-linux-open-source@linux.davincidsp.com, sachi@mistralsolutions.com, Russell King , Kevin Hilman , nsekhar@ti.com, open list , m-watkins@ti.com, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH v2 12/13] da850: pruss SUART platform specific additions. References: <1297435892-28278-1-git-send-email-subhasish@mistralsolutions.com> <1297435892-28278-13-git-send-email-subhasish@mistralsolutions.com> <4D55860E.3090908@mvista.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 914 Lines: 29 Hello. On 22-02-2011 12:18, Subhasish Ghosh wrote: > I could not follow your recommendations clearly, are you suggesting this: > int __init da8xx_register_pruss(struct da8xx_pruss_devices *pruss_device) > { > #ifdef CONFIG_SERIAL_PRUSS_SUART_MODULE > int ret; > > ret = clk_add_alias(NULL, "da8xx_pruss_uart.1", > NULL, &da850_mcasp_device.dev); > if (ret < 0) > return ret; > #endif > da8xx_pruss_dev.dev.platform_data = pruss_device; > return platform_device_register(&da8xx_pruss_dev); > } Yes. But still better would be to wrap clk_add_alias() into a function of its own (defining it empty if CONFIG_SERIAL_PRUSS_SUART_MODULE is not defined). WBR, Sergei -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/