Linux Serial subsystem development
 help / color / mirror / Atom feed
* [PATCH] serial: samsung: Fix build for non-Exynos4210 devices
@ 2011-11-04 17:16 Mark Brown
  2011-11-06 16:13 ` Thomas Abraham
  0 siblings, 1 reply; 3+ messages in thread
From: Mark Brown @ 2011-11-04 17:16 UTC (permalink / raw)
  To: Alan Cox, Kukjin Kim
  Cc: Thomas Abraham, linux-serial, linux-kernel, Mark Brown

exynos4120_serial_drv_data is only defined when building with support
for Exynos4210 so use the already provided define to ensure that we
don't reference it when building for other SoCs.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
---
 drivers/tty/serial/samsung.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/tty/serial/samsung.c b/drivers/tty/serial/samsung.c
index efe3756..7272eee 100644
--- a/drivers/tty/serial/samsung.c
+++ b/drivers/tty/serial/samsung.c
@@ -1649,7 +1649,7 @@ MODULE_DEVICE_TABLE(platform, s3c24xx_serial_driver_ids);
 #ifdef CONFIG_OF
 static const struct of_device_id s3c24xx_uart_dt_match[] = {
 	{ .compatible = "samsung,exynos4210-uart",
-		.data = &exynos4210_serial_drv_data },
+		.data = EXYNOS4210_SERIAL_DRV_DATA },
 	{},
 };
 MODULE_DEVICE_TABLE(of, s3c24xx_uart_dt_match);
-- 
1.7.7.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] serial: samsung: Fix build for non-Exynos4210 devices
  2011-11-04 17:16 [PATCH] serial: samsung: Fix build for non-Exynos4210 devices Mark Brown
@ 2011-11-06 16:13 ` Thomas Abraham
  2011-11-08  5:00   ` Kukjin Kim
  0 siblings, 1 reply; 3+ messages in thread
From: Thomas Abraham @ 2011-11-06 16:13 UTC (permalink / raw)
  To: Mark Brown; +Cc: Alan Cox, Kukjin Kim, linux-serial, linux-kernel

Hi Mark,

On 4 November 2011 22:46, Mark Brown
<broonie@opensource.wolfsonmicro.com> wrote:
> exynos4120_serial_drv_data is only defined when building with support
> for Exynos4210 so use the already provided define to ensure that we
> don't reference it when building for other SoCs.
>
> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>

I missed that one. Thanks for the fix.

The Samsung device tree patches will not be merged in v3.2 merge
window. So should this fix be merged into the uart dt support patch or
should this be a separate patch?

Thanks,
Thomas.

> ---
>  drivers/tty/serial/samsung.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/drivers/tty/serial/samsung.c b/drivers/tty/serial/samsung.c
> index efe3756..7272eee 100644
> --- a/drivers/tty/serial/samsung.c
> +++ b/drivers/tty/serial/samsung.c
> @@ -1649,7 +1649,7 @@ MODULE_DEVICE_TABLE(platform, s3c24xx_serial_driver_ids);
>  #ifdef CONFIG_OF
>  static const struct of_device_id s3c24xx_uart_dt_match[] = {
>        { .compatible = "samsung,exynos4210-uart",
> -               .data = &exynos4210_serial_drv_data },
> +               .data = EXYNOS4210_SERIAL_DRV_DATA },
>        {},
>  };
>  MODULE_DEVICE_TABLE(of, s3c24xx_uart_dt_match);
> --
> 1.7.7.1
>
>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* RE: [PATCH] serial: samsung: Fix build for non-Exynos4210 devices
  2011-11-06 16:13 ` Thomas Abraham
@ 2011-11-08  5:00   ` Kukjin Kim
  0 siblings, 0 replies; 3+ messages in thread
From: Kukjin Kim @ 2011-11-08  5:00 UTC (permalink / raw)
  To: 'Thomas Abraham', 'Mark Brown'
  Cc: 'Alan Cox', linux-serial, linux-kernel

Thomas Abraham wrote:
> 
> Hi Mark,
> 
> On 4 November 2011 22:46, Mark Brown
> <broonie@opensource.wolfsonmicro.com> wrote:
> > exynos4120_serial_drv_data is only defined when building with support
> > for Exynos4210 so use the already provided define to ensure that we
> > don't reference it when building for other SoCs.
> >
> > Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
> 
> I missed that one. Thanks for the fix.
> 
> The Samsung device tree patches will not be merged in v3.2 merge
> window. So should this fix be merged into the uart dt support patch or
> should this be a separate patch?
> 

Hi all,

Okay, I will pick this up on 'next-samung-dt' tree which will be sent to
upstream in next time.

As a note, I need to sort out the tree based on v3.2-rc1 then will apply
this.

If any problems, please let me know.

Thanks.

Best regards,
Kgene.
--
Kukjin Kim <kgene.kim@samsung.com>, Senior Engineer,
SW Solution Development Team, Samsung Electronics Co., Ltd.
> 
> > ---
> >  drivers/tty/serial/samsung.c |    2 +-
> >  1 files changed, 1 insertions(+), 1 deletions(-)
> >
> > diff --git a/drivers/tty/serial/samsung.c b/drivers/tty/serial/samsung.c
> > index efe3756..7272eee 100644
> > --- a/drivers/tty/serial/samsung.c
> > +++ b/drivers/tty/serial/samsung.c
> > @@ -1649,7 +1649,7 @@ MODULE_DEVICE_TABLE(platform,
> s3c24xx_serial_driver_ids);
> >  #ifdef CONFIG_OF
> >  static const struct of_device_id s3c24xx_uart_dt_match[] = {
> >        { .compatible = "samsung,exynos4210-uart",
> > -               .data = &exynos4210_serial_drv_data },
> > +               .data = EXYNOS4210_SERIAL_DRV_DATA },
> >        {},
> >  };
> >  MODULE_DEVICE_TABLE(of, s3c24xx_uart_dt_match);
> > --
> > 1.7.7.1
> >
> >

--
To unsubscribe from this list: send the line "unsubscribe linux-serial" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-11-08  5:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-04 17:16 [PATCH] serial: samsung: Fix build for non-Exynos4210 devices Mark Brown
2011-11-06 16:13 ` Thomas Abraham
2011-11-08  5:00   ` Kukjin Kim

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox