linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: jbe@pengutronix.de (Juergen Beisert)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] ARM:S3C2440: MINI2440 Remove some improper __initdata qualifiers
Date: Wed, 21 Oct 2009 11:29:25 +0200	[thread overview]
Message-ID: <200910211129.26044.jbe@pengutronix.de> (raw)
In-Reply-To: <1256095984.1600.109.camel@shinel>

On Mittwoch, 21. Oktober 2009, Shine Liu wrote:
>[...]
>> @@ -144,7 +144,7 @@ 
>  	.type		= (S3C2410_LCDCON1_TFT16BPP |\
>  			   S3C2410_LCDCON1_TFT)
>
> -struct s3c2410fb_display mini2440_lcd_cfg[] __initdata = {
> +struct s3c2410fb_display mini2440_lcd_cfg[] = {
>  	[0] = {	/* mini2440 + 3.5" TFT + touchscreen */
>  		_LCD_DECLARE(
>  			7,			/* The 3.5 is quite fast */
> @@ -191,7 +191,7 @@
>  #define S3C2410_GPCCON_MASK(x)	(3 << ((x) * 2))
>  #define S3C2410_GPDCON_MASK(x)	(3 << ((x) * 2))
>
> -struct s3c2410fb_mach_info mini2440_fb_info __initdata = {
> +struct s3c2410fb_mach_info mini2440_fb_info = {
>  	.displays	 = &mini2440_lcd_cfg[0], /* not constant! see init */
>  	.num_displays	 = 1,
>  	.default_display = 0,

But the other implementations in this directory are also using __initdata for 
these structures. Do they also need to remove the __initdata?

> [...]
> @@ -498,14 +498,14 @@
>  	.page_size	= 16,
>  };
>
> -static struct i2c_board_info mini2440_i2c_devs[] __initdata = {
> +static struct i2c_board_info mini2440_i2c_devs[] = {
>  	{
>  		I2C_BOARD_INFO("24c08", 0x50),
>  		.platform_data = &at24c08,
>  	},
>  };
>
> -static struct platform_device *mini2440_devices[] __initdata = {
> +static struct platform_device *mini2440_devices[] = {

You can keep this __initdata. mini2440_devices[] its used only once from a 
__init marked function.

jbe

-- 
Pengutronix e.K.                              | Juergen Beisert             |
Linux Solutions for Science and Industry      | Phone: +49-8766-939 228     |
Vertretung Sued/Muenchen, Germany             | Fax:   +49-5121-206917-5555 |
Amtsgericht Hildesheim, HRA 2686              | http://www.pengutronix.de/  |

  reply	other threads:[~2009-10-21  9:29 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-21  3:33 [PATCH] ARM:S3C2440: MINI2440 Remove some improper __initdata qualifiers Shine Liu
2009-10-21  9:29 ` Juergen Beisert [this message]
2009-10-21 10:13   ` Shine Liu
2009-10-21 14:13   ` [PATCH v2] " Shine Liu
2009-11-19  6:53   ` Shine Liu

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=200910211129.26044.jbe@pengutronix.de \
    --to=jbe@pengutronix.de \
    --cc=linux-arm-kernel@lists.infradead.org \
    /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).