Skip to contentSkip to conversation

ARM: S3C64XX: Supply platform data for SPI on Cragganmore

PATCH New Mark Brown 2 participants 2 messages Feb 15, 2012 – Feb 16, 2012

Subsystems (3)
lore
Share & tools
lore

Mark Brown

author
#0 lore raw

PATCH 1/1 ARM: S3C64XX: Supply platform data for SPI on Cragganmore

Having to specify the platform data explicitly like this even though it is provided as a default doesn't feel entirely elegant but there we are.

---
 arch/arm/mach-s3c64xx/mach-crag6410.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
arch/arm/mach-s3c64xx/mach-crag6410.c +1 -1
index d5a7982..c05e070 100644
@@ -790,7 +790,7 @@ static void __init crag6410_machine_init(void)
 	i2c_register_board_info(1, i2c_devs1, ARRAY_SIZE(i2c_devs1));
 
 	samsung_keypad_set_platdata(&crag6410_keypad_data);
-	s3c64xx_spi0_set_platdata(NULL, 0, 1);
+	s3c64xx_spi0_set_platdata(&s3c64xx_spi0_pdata, 0, 1);
 
 	platform_add_devices(crag6410_devices, ARRAY_SIZE(crag6410_devices));
 
Signature · 1 line
1.7.9.rc1
#1 lore raw

PATCH 1/1 ARM: S3C64XX: Supply platform data for SPI on Cragganmore

Quoted 2 lines · Mark Brown

Having to specify the platform data explicitly like this even though it

Yes.

Quoted 2 lines

is provided as a default doesn't feel entirely elegant but there we are.

Hmm...OK, I see. Will apply.

And let me check about similar case in samsung stuff whether it would be changed or not.

Thanks.

Best regards,
Kgene.
--
Kukjin Kim <[email protected]>, Senior Engineer, SW Solution Development Team, Samsung Electronics Co., Ltd.