[#4329] blackfin v4l drivers fail with linux-2.6.26

Document created by Aaronwu Employee on Aug 29, 2013
Version 1Show Document
  • View in full screen mode

[#4329] blackfin v4l drivers fail with linux-2.6.26

Submitted By: Mike Frysinger

Open Date

2008-08-08 18:31:24     Close Date

2008-08-12 11:32:02

Priority:

Medium     Assignee:

Michael Hennerich

Status:

Closed     Fixed In Release:

N/A

Found In Release:

N/A     Release:

Category:

N/A     Board:

N/A

Processor:

N/A     Silicon Revision:

Is this bug repeatable?:

Yes     Resolution:

Fixed

Uboot version or rev.:

    Toolchain version or rev.:

App binary format:

N/A     

Summary: blackfin v4l drivers fail with linux-2.6.26

Details:

 

the class_device stuff has been removed in recent kernel versions.  this causes our v4l drivers to fail:

drivers/media/video/blackfin/ov9655.c:230: warning: 'struct class_device' declared inside parameter list

drivers/media/video/blackfin/ov9655.c:230: warning: its scope is only this definition or declaration, which is probably not what you want

drivers/media/video/blackfin/ov9655.c: In function 'sysfs_sysfs_show_val':

drivers/media/video/blackfin/ov9655.c:239: warning: initialization from incompatible pointer type

drivers/media/video/blackfin/ov9655.c: At top level:

drivers/media/video/blackfin/ov9655.c:259: warning: 'struct class_device' declared inside parameter list

drivers/media/video/blackfin/ov9655.c: In function 'sysfs_sysfs_store_val':

drivers/media/video/blackfin/ov9655.c:269: warning: initialization from incompatible pointer type

drivers/media/video/blackfin/ov9655.c: At top level:

drivers/media/video/blackfin/ov9655.c:295: warning: 'struct class_device' declared inside parameter list

drivers/media/video/blackfin/ov9655.c: In function 'sysfs_fps_show':

drivers/media/video/blackfin/ov9655.c:298: warning: passing argument 1 of 'sysfs_sysfs_show_val' from incompatible pointer type

drivers/media/video/blackfin/ov9655.c: At top level:

drivers/media/video/blackfin/ov9655.c:302: warning: 'struct class_device' declared inside parameter list

drivers/media/video/blackfin/ov9655.c: In function 'sysfs_fps_store':

drivers/media/video/blackfin/ov9655.c:304: warning: passing argument 1 of 'sysfs_sysfs_store_val' from incompatible pointer type

drivers/media/video/blackfin/ov9655.c: At top level:

drivers/media/video/blackfin/ov9655.c:307: error: expected ')' before '(' token

drivers/media/video/blackfin/ov9655.c:310: warning: 'struct class_device' declared inside parameter list

drivers/media/video/blackfin/ov9655.c: In function 'sysfs_flicker_show':

drivers/media/video/blackfin/ov9655.c:312: warning: passing argument 1 of 'sysfs_sysfs_show_val' from incompatible pointer type

drivers/media/video/blackfin/ov9655.c: At top level:

drivers/media/video/blackfin/ov9655.c:316: warning: 'struct class_device' declared inside parameter list

drivers/media/video/blackfin/ov9655.c: In function 'sysfs_flicker_store':

drivers/media/video/blackfin/ov9655.c:318: warning: passing argument 1 of 'sysfs_sysfs_store_val' from incompatible pointer type

drivers/media/video/blackfin/ov9655.c: At top level:

drivers/media/video/blackfin/ov9655.c:321: error: expected ')' before '(' token

drivers/media/video/blackfin/ov9655.c:324: warning: 'struct class_device' declared inside parameter list

drivers/media/video/blackfin/ov9655.c: In function 'sysfs_h_mirror_show':

drivers/media/video/blackfin/ov9655.c:326: warning: passing argument 1 of 'sysfs_sysfs_show_val' from incompatible pointer type

drivers/media/video/blackfin/ov9655.c: At top level:

drivers/media/video/blackfin/ov9655.c:330: warning: 'struct class_device' declared inside parameter list

drivers/media/video/blackfin/ov9655.c: In function 'sysfs_h_mirror_store':

drivers/media/video/blackfin/ov9655.c:332: warning: passing argument 1 of 'sysfs_sysfs_store_val' from incompatible pointer type

drivers/media/video/blackfin/ov9655.c: At top level:

drivers/media/video/blackfin/ov9655.c:335: error: expected ')' before '(' token

drivers/media/video/blackfin/ov9655.c:338: warning: 'struct class_device' declared inside parameter list

drivers/media/video/blackfin/ov9655.c: In function 'sysfs_v_mirror_show':

drivers/media/video/blackfin/ov9655.c:340: warning: passing argument 1 of 'sysfs_sysfs_show_val' from incompatible pointer type

drivers/media/video/blackfin/ov9655.c: At top level:

drivers/media/video/blackfin/ov9655.c:344: warning: 'struct class_device' declared inside parameter list

drivers/media/video/blackfin/ov9655.c: In function 'sysfs_v_mirror_store':

drivers/media/video/blackfin/ov9655.c:346: warning: passing argument 1 of 'sysfs_sysfs_store_val' from incompatible pointer type

drivers/media/video/blackfin/ov9655.c: At top level:

drivers/media/video/blackfin/ov9655.c:349: error: expected ')' before '(' token

drivers/media/video/blackfin/ov9655.c: In function 'ov9655_create_sysfs':

drivers/media/video/blackfin/ov9655.c:357: error: 'class_device_attr_fps' undeclared (first use in this function)

drivers/media/video/blackfin/ov9655.c:357: error: (Each undeclared identifier is reported only once

drivers/media/video/blackfin/ov9655.c:357: error: for each function it appears in.)

drivers/media/video/blackfin/ov9655.c:360: error: 'class_device_attr_flicker' undeclared (first use in this function)

drivers/media/video/blackfin/ov9655.c:363: error: 'class_device_attr_v_mirror' undeclared (first use in this function)

drivers/media/video/blackfin/ov9655.c:366: error: 'class_device_attr_h_mirror' undeclared (first use in this function)

make[4]: *** [drivers/media/video/blackfin/ov9655.o] Error 1

make[3]: *** [drivers/media/video/blackfin] Error 2

make[2]: *** [drivers/media/video] Error 2

make[1]: *** [drivers/media] Error 2

make: *** [drivers] Error 2

 

Follow-ups

 

--- Michael Hennerich                                        2008-08-12 11:31:59

Fixed and closed.

 

-Michael

 

 

 

    Files

    Changes

    Commits

    Dependencies

    Duplicates

    Associations

    Tags

 

File Name     File Type     File Size     Posted By

No Files Were Found

Attachments

    Outcomes