eisa_h driverdata access
PATCH 1/1 eisa_h driverdata access
hope I fixed all errors from last time.
I retry with shorter patch.
greets
yoon
include/linux/eisa.h +2 -2
@@ -74,12 +74,12 @@ void eisa_driver_unregister (struct eisa/* Mimics pci.h... */ static inline void *eisa_get_drvdata (struct eisa_device *edev) { -return edev->dev.driver_data; +return dev_get_drvdata (edev->dev); }static inline void eisa_set_drvdata (struct eisa_device *edev,void *data) { - edev->dev.driver_data = data; +dev_set_drvdata (edev->dev,data); }/* The EISA root device. There's rumours about machines with multiple
_______________________________________________
Kernel-janitors mailing list
[email protected]
http://lists.osdl.org/mailman/listinfo/kernel-janitors
Quoted 1 line · On Tue, Jun 01, 2004 at 02:13:08AM +0200, [email protected] wrote:
hope I fixed all errors from last time.
Your spacing is still messed up. Linux style is 1-tab indents.
Quoted 7 lines
include/linux/eisa.h +1
-1@@ -74,12 +74,12 @@ void eisa_driver_unregister (struct eisa/* Mimics pci.h... */ static inline void *eisa_get_drvdata (struct eisa_device *edev) { -return edev->dev.driver_data; +return dev_get_drvdata (edev->dev); }
Signature · 6 lines
"Next the statesmen will invent cheap lies, putting the blame upon the nation that is attacked, and every man will be glad of those conscience-soothing falsities, and will diligently study them, and refuse to examine any refutations of them; and thus he will by and by convince himself that the war is just, and will thank God for the better sleep he enjoys after this process of grotesque self-deception." -- Mark Twain
_______________________________________________
Kernel-janitors mailing list
[email protected]
http://lists.osdl.org/mailman/listinfo/kernel-janitors
PATCH 1/1 eisa_h driverdata access
In reply to [email protected]now with tabs I hope.
include/linux/eisa.h +2 -2
@@ -74,12 +74,12 @@ void eisa_driver_unregister (struct eisa/* Mimics pci.h... */ static inline void *eisa_get_drvdata (struct eisa_device *edev) { -return edev->dev.driver_data; +return dev_get_drvdata (edev->dev); }static inline void eisa_set_drvdata (struct eisa_device *edev,void *data) { - edev->dev.driver_data = data; +dev_set_drvdata (edev->dev, data); }/* The EISA root device. There's rumours about machines with multiple
_______________________________________________
Kernel-janitors mailing list
[email protected]
http://lists.osdl.org/mailman/listinfo/kernel-janitors
Quoted 11 lines · On Tue, 01 Jun 2004, [email protected] wrote:
now with tabs I hope.
diff -uprN -X dontdiff
linux-2.6.6-orig/include/linux/eisa.hlinux-2.6.6-new/include/linux/eisa.hinclude/linux/eisa.h +0
-1@@ -74,12 +74,12 @@ void eisa_driver_unregister (struct eisa/* Mimics pci.h... */ static inline void *eisa_get_drvdata (struct eisa_device *edev) { -return edev->dev.driver_data;
include/linux/eisa.h void eisa_driver_unregister (struct eisa · line 85
Quoted 10 lines
include/linux/eisa.h +2
-1+return dev_get_drvdata (edev->dev); }static inline void eisa_set_drvdata (struct eisa_device *edev,void *data) { - edev->dev.driver_data = data; +dev_set_drvdata (edev->dev, data); }/* The EISA root device. There's rumours about machines with multiple
huuh you didn't compile test your patch:
include/linux/eisa.h: In function `eisa_get_drvdata':include/linux/eisa.h:77: error: incompatible type for argument 1 of `dev_get_drvdata'include/linux/eisa.h: In function `eisa_set_drvdata':include/linux/eisa.h:82: error: incompatible type for argument 1 of `dev_set_drvdata'
make[1]: *** [arch/i386/kernel/traps.o] Error 1
make: *** [arch/i386/kernel] Error 2
dropped for next kjt.
a++ maks
_______________________________________________
Kernel-janitors mailing list
[email protected]
http://lists.osdl.org/mailman/listinfo/kernel-janitors