mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-18 01:34:14 +08:00
[ARM] pxa/em-x270: don't use pxa_camera init() callback
pxa_camera init() is ambiguous, it's better to statically configure the sensor. Signed-off-by: Antonio Ospite <ospite@studenti.unina.it> Acked-by: Mike Rapoport <mike@compulab.co.il> Signed-off-by: Eric Miao <eric.y.miao@gmail.com>
This commit is contained in:
parent
db205463fd
commit
a7f2bdb39e
@ -967,7 +967,7 @@ static inline void em_x270_init_gpio_keys(void) {}
|
||||
#if defined(CONFIG_VIDEO_PXA27x) || defined(CONFIG_VIDEO_PXA27x_MODULE)
|
||||
static struct regulator *em_x270_camera_ldo;
|
||||
|
||||
static int em_x270_sensor_init(struct device *dev)
|
||||
static int em_x270_sensor_init(void)
|
||||
{
|
||||
int ret;
|
||||
|
||||
@ -996,7 +996,6 @@ static int em_x270_sensor_init(struct device *dev)
|
||||
}
|
||||
|
||||
struct pxacamera_platform_data em_x270_camera_platform_data = {
|
||||
.init = em_x270_sensor_init,
|
||||
.flags = PXA_CAMERA_MASTER | PXA_CAMERA_DATAWIDTH_8 |
|
||||
PXA_CAMERA_PCLK_EN | PXA_CAMERA_MCLK_EN,
|
||||
.mclk_10khz = 2600,
|
||||
@ -1049,9 +1048,11 @@ static struct platform_device em_x270_camera = {
|
||||
|
||||
static void __init em_x270_init_camera(void)
|
||||
{
|
||||
if (em_x270_sensor_init() == 0) {
|
||||
pxa_set_camera_info(&em_x270_camera_platform_data);
|
||||
platform_device_register(&em_x270_camera);
|
||||
}
|
||||
}
|
||||
#else
|
||||
static inline void em_x270_init_camera(void) {}
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user