File tree Expand file tree Collapse file tree 2 files changed +26
-2
lines changed Expand file tree Collapse file tree 2 files changed +26
-2
lines changed Original file line number Diff line number Diff line change @@ -1872,7 +1872,19 @@ static struct i2c_driver rt5651_i2c_driver = {
1872
1872
.remove = rt5651_i2c_remove ,
1873
1873
.id_table = rt5651_i2c_id ,
1874
1874
};
1875
- module_i2c_driver (rt5651_i2c_driver );
1875
+
1876
+ //module_i2c_driver(rt5651_i2c_driver);
1877
+ static int __init rt5651_codec_init (void )
1878
+ {
1879
+ return i2c_add_driver (& rt5651_i2c_driver );
1880
+ }
1881
+ static void __exit rt5651_codec_exit (void )
1882
+ {
1883
+ return i2c_del_driver (& rt5651_i2c_driver );
1884
+ }
1885
+ late_initcall_sync (rt5651_codec_init );
1886
+
1887
+ module_exit (rt5651_codec_exit );
1876
1888
1877
1889
MODULE_DESCRIPTION ("ASoC RT5651 driver" );
1878
1890
MODULE_AUTHOR (
"Bard Liao <[email protected] >" );
Original file line number Diff line number Diff line change @@ -84,7 +84,19 @@ static struct platform_driver spdif_dit_driver = {
84
84
},
85
85
};
86
86
87
- module_platform_driver (spdif_dit_driver );
87
+ //module_platform_driver(spdif_dit_driver);
88
+ static int __init spdif_codec_init (void )
89
+ {
90
+ return platform_driver_register (& spdif_dit_driver );
91
+ }
92
+
93
+ static void __exit spdif_codec_exit (void )
94
+ {
95
+ platform_driver_unregister (& spdif_dit_driver );
96
+ }
97
+ late_initcall (spdif_codec_init );
98
+
99
+ module_exit (spdif_codec_exit );
88
100
89
101
MODULE_AUTHOR (
"Steve Chen <[email protected] >" );
90
102
MODULE_DESCRIPTION ("SPDIF dummy codec driver" );
You can’t perform that action at this time.
0 commit comments