linux-next.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Sascha Hauer <s.hauer@pengutronix.de>
To: Viresh Kumar <viresh.kumar2@arm.com>
Cc: akpm@linux-foundation.org, linux-arm-kernel@lists.infradead.org,
	spear-devel@list.st.com, viresh.linux@gmail.com,
	paul.gortmaker@windriver.com, linux-next@vger.kernel.org,
	fengguang.wu@intel.com
Subject: Re: [PATCH] ARM: netx: Reuse dummy clk routines for non CONFIG_HAVE_CLK case
Date: Thu, 14 Jun 2012 10:16:32 +0200	[thread overview]
Message-ID: <20120614081632.GO30400@pengutronix.de> (raw)
In-Reply-To: <5c52038c3c8ec3cc6a5468139e886d5e8a1a1f5c.1339661188.git.viresh.kumar2@arm.com>

On Thu, Jun 14, 2012 at 09:11:13AM +0100, Viresh Kumar wrote:
> mach-netx had its own implementation of clk routines like, clk_get{put},
> clk_enable{disable}, etc. And with introduction of following patchset:
> 
> https://lkml.org/lkml/2012/4/24/154
> 
> we get compilation error for multiple definition of these routines.
> 
> Sascha had following suggestion to deal with it:
> 
> http://www.spinics.net/lists/arm-kernel/msg179369.html
> 
> So, removing this code completely.
> 
> Signed-off-by: Viresh Kumar <viresh.kumar2@arm.com>

Acked-by: Sascha Hauer <s.hauer@pengutronix.de>

Sascha

> ---
>  arch/arm/mach-netx/fb.c | 23 -----------------------
>  1 file changed, 23 deletions(-)
> 
> diff --git a/arch/arm/mach-netx/fb.c b/arch/arm/mach-netx/fb.c
> index 2cdf6ef..d122ee6 100644
> --- a/arch/arm/mach-netx/fb.c
> +++ b/arch/arm/mach-netx/fb.c
> @@ -69,29 +69,6 @@ void netx_clcd_remove(struct clcd_fb *fb)
>                               fb->fb.screen_base, fb->fb.fix.smem_start);
>  }
> 
> -void clk_disable(struct clk *clk)
> -{
> -}
> -
> -int clk_set_rate(struct clk *clk, unsigned long rate)
> -{
> -       return 0;
> -}
> -
> -int clk_enable(struct clk *clk)
> -{
> -       return 0;
> -}
> -
> -struct clk *clk_get(struct device *dev, const char *id)
> -{
> -       return dev && strcmp(dev_name(dev), "fb") == 0 ? NULL : ERR_PTR(-ENOENT);
> -}
> -
> -void clk_put(struct clk *clk)
> -{
> -}
> -
>  static AMBA_AHB_DEVICE(fb, "fb", 0, 0x00104000, { NETX_IRQ_LCD }, NULL);
> 
>  int netx_fb_init(struct clcd_board *board, struct clcd_panel *panel)
> --
> 1.7.11.rc1.9.gf623ca1
> 
> 
> -- IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium.  Thank you.
> 
> 

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

      reply	other threads:[~2012-06-14  8:16 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-06-14  8:11 [PATCH] ARM: netx: Reuse dummy clk routines for non CONFIG_HAVE_CLK case Viresh Kumar
2012-06-14  8:16 ` Sascha Hauer [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20120614081632.GO30400@pengutronix.de \
    --to=s.hauer@pengutronix.de \
    --cc=akpm@linux-foundation.org \
    --cc=fengguang.wu@intel.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-next@vger.kernel.org \
    --cc=paul.gortmaker@windriver.com \
    --cc=spear-devel@list.st.com \
    --cc=viresh.kumar2@arm.com \
    --cc=viresh.linux@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).