File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ static struct device_driver gru_driver = {
2929};
3030
3131static struct device gru_device = {
32- .bus_id = { 0 } ,
32+ .init_name = "" ,
3333 .driver = & gru_driver ,
3434};
3535
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ struct device_driver xp_dbg_name = {
2525};
2626
2727struct device xp_dbg_subname = {
28- .bus_id = { 0 } , /* set to "" */
28+ .init_name = "" , /* set to "" */
2929 .driver = & xp_dbg_name
3030};
3131
Original file line number Diff line number Diff line change @@ -59,12 +59,12 @@ struct device_driver xpc_dbg_name = {
5959};
6060
6161struct device xpc_part_dbg_subname = {
62- .bus_id = { 0 }, /* set to "part" at xpc_init() time */
62+ .init_name = "" , /* set to "part" at xpc_init() time */
6363 .driver = & xpc_dbg_name
6464};
6565
6666struct device xpc_chan_dbg_subname = {
67- .bus_id = { 0 }, /* set to "chan" at xpc_init() time */
67+ .init_name = "" , /* set to "chan" at xpc_init() time */
6868 .driver = & xpc_dbg_name
6969};
7070
@@ -1258,8 +1258,8 @@ xpc_init(void)
12581258 int ret ;
12591259 struct task_struct * kthread ;
12601260
1261- snprintf (xpc_part -> bus_id , BUS_ID_SIZE , "part" );
1262- snprintf (xpc_chan -> bus_id , BUS_ID_SIZE , "chan" );
1261+ dev_set_name (xpc_part , "part" );
1262+ dev_set_name (xpc_chan , "chan" );
12631263
12641264 if (is_shub ()) {
12651265 /*
Original file line number Diff line number Diff line change @@ -138,7 +138,7 @@ struct device_driver xpnet_dbg_name = {
138138};
139139
140140struct device xpnet_dbg_subname = {
141- .bus_id = { 0 }, /* set to "" */
141+ .init_name = "" , /* set to "" */
142142 .driver = & xpnet_dbg_name
143143};
144144
You can’t perform that action at this time.
0 commit comments