tunahansahiner / easy-slow-down-manager

Automatically exported from code.google.com/p/easy-slow-down-manager
0 stars 0 forks source link

Modules doesn't compile with 2.6.34 kernel #2

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Build crash with follow error:

[pastor@x120 easy-slow-down-manager-read-only-build]$ make
make -C /lib/modules/2.6.34-ck1-ARCH/build M=/virtual/soft/drivers/easy-
slow-down-manager-svn/src/easy-slow-down-manager-read-only-build modules
make[1]: Entering directory `/usr/src/linux-2.6.34-ck1-ARCH'
  CC [M]  /virtual/soft/drivers/easy-slow-down-manager-svn/src/easy-slow-
down-manager-read-only-build/easy_slow_down_manager.o
  CC [M]  /virtual/soft/drivers/easy-slow-down-manager-svn/src/easy-slow-
down-manager-read-only-build/samsung-backlight.o
/virtual/soft/drivers/easy-slow-down-manager-svn/src/easy-slow-down-
manager-read-only-build/samsung-backlight.c: In function 'samsung_init':
/virtual/soft/drivers/easy-slow-down-manager-svn/src/easy-slow-down-
manager-read-only-build/samsung-backlight.c:362:12: error: too few 
arguments to function 'backlight_device_register'
include/linux/backlight.h:105:33: note: declared here
make[2]: *** [/virtual/soft/drivers/easy-slow-down-manager-svn/src/easy-
slow-down-manager-read-only-build/samsung-backlight.o] Error 1
make[1]: *** [_module_/virtual/soft/drivers/easy-slow-down-manager-svn/src/
easy-slow-down-manager-read-only-build] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.34-ck1-ARCH'
make: *** [all] Error 2

Original issue reported on code.google.com by naumovvv on 21 May 2010 at 11:48

GoogleCodeExporter commented 9 years ago
add a paramater to pass in to backlight_device_register:
        struct device *parent=NULL; 
    struct backlight_properties props;
        memset(&props, 0, sizeof(struct backlight_properties));
    props.max_brightness = 20 - 1;

--
    backlight_device = backlight_device_register("samsung",
                             parent,
                             NULL, &backlight_ops,& props);

Original comment by chxand...@gmail.com on 17 Jun 2010 at 3:21

GoogleCodeExporter commented 9 years ago
Thanks for reply. It's working now.

Original comment by naumovvv on 17 Jun 2010 at 7:09

GoogleCodeExporter commented 9 years ago
Should be fixed in 0.13.2; please try and report errors, if any. Thank you

Original comment by SergeyK...@gmail.com on 12 Jul 2010 at 7:36

GoogleCodeExporter commented 9 years ago

Original comment by SergeyK...@gmail.com on 23 Oct 2010 at 2:12