diff options
Diffstat (limited to 'arch/sh/boards/mach-migor/setup.c')
| -rw-r--r-- | arch/sh/boards/mach-migor/setup.c | 32 |
1 files changed, 18 insertions, 14 deletions
diff --git a/arch/sh/boards/mach-migor/setup.c b/arch/sh/boards/mach-migor/setup.c index 9099b6da9957..507c77be476d 100644 --- a/arch/sh/boards/mach-migor/setup.c +++ b/arch/sh/boards/mach-migor/setup.c | |||
| @@ -432,23 +432,27 @@ static struct i2c_board_info migor_i2c_camera[] = { | |||
| 432 | 432 | ||
| 433 | static struct ov772x_camera_info ov7725_info = { | 433 | static struct ov772x_camera_info ov7725_info = { |
| 434 | .buswidth = SOCAM_DATAWIDTH_8, | 434 | .buswidth = SOCAM_DATAWIDTH_8, |
| 435 | .link = { | 435 | }; |
| 436 | .power = ov7725_power, | 436 | |
| 437 | .board_info = &migor_i2c_camera[0], | 437 | static struct soc_camera_link ov7725_link = { |
| 438 | .i2c_adapter_id = 0, | 438 | .power = ov7725_power, |
| 439 | .module_name = "ov772x", | 439 | .board_info = &migor_i2c_camera[0], |
| 440 | }, | 440 | .i2c_adapter_id = 0, |
| 441 | .module_name = "ov772x", | ||
| 442 | .priv = &ov7725_info, | ||
| 441 | }; | 443 | }; |
| 442 | 444 | ||
| 443 | static struct tw9910_video_info tw9910_info = { | 445 | static struct tw9910_video_info tw9910_info = { |
| 444 | .buswidth = SOCAM_DATAWIDTH_8, | 446 | .buswidth = SOCAM_DATAWIDTH_8, |
| 445 | .mpout = TW9910_MPO_FIELD, | 447 | .mpout = TW9910_MPO_FIELD, |
| 446 | .link = { | 448 | }; |
| 447 | .power = tw9910_power, | 449 | |
| 448 | .board_info = &migor_i2c_camera[1], | 450 | static struct soc_camera_link tw9910_link = { |
| 449 | .i2c_adapter_id = 0, | 451 | .power = tw9910_power, |
| 450 | .module_name = "tw9910", | 452 | .board_info = &migor_i2c_camera[1], |
| 451 | } | 453 | .i2c_adapter_id = 0, |
| 454 | .module_name = "tw9910", | ||
| 455 | .priv = &tw9910_info, | ||
| 452 | }; | 456 | }; |
| 453 | 457 | ||
| 454 | static struct platform_device migor_camera[] = { | 458 | static struct platform_device migor_camera[] = { |
| @@ -456,13 +460,13 @@ static struct platform_device migor_camera[] = { | |||
| 456 | .name = "soc-camera-pdrv", | 460 | .name = "soc-camera-pdrv", |
| 457 | .id = 0, | 461 | .id = 0, |
| 458 | .dev = { | 462 | .dev = { |
| 459 | .platform_data = &ov7725_info.link, | 463 | .platform_data = &ov7725_link, |
| 460 | }, | 464 | }, |
| 461 | }, { | 465 | }, { |
| 462 | .name = "soc-camera-pdrv", | 466 | .name = "soc-camera-pdrv", |
| 463 | .id = 1, | 467 | .id = 1, |
| 464 | .dev = { | 468 | .dev = { |
| 465 | .platform_data = &tw9910_info.link, | 469 | .platform_data = &tw9910_link, |
| 466 | }, | 470 | }, |
| 467 | }, | 471 | }, |
| 468 | }; | 472 | }; |
