libgpg-error: Fix compiling with uclibc
[openadk.git] / package / mISDN / patches / patch-drivers_isdn_hardware_mISDN_sysfs_st_c
blob61d88e3fc5b3ac5e474d11076f9aefff300e5415
1         yeah, same as always
2 --- mISDN-1_1_9_2.orig/drivers/isdn/hardware/mISDN/sysfs_st.c   2009-06-09 10:10:16.000000000 +0200
3 +++ mISDN-1_1_9_2/drivers/isdn/hardware/mISDN/sysfs_st.c        2011-07-11 14:10:50.061001669 +0200
4 @@ -260,11 +260,11 @@ mISDN_register_sysfs_stack(mISDNstack_t 
5         st->class_dev.class = &stack_dev_class;
6  #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,26)
7          if (st->id & FLG_CHILD_STACK)
8 -                snprintf(st->class_dev.bus_id, BUS_ID_SIZE, "chst-%08x", st->id);
9 +               dev_set_name(&st->class_dev, "chst-%08x", st->id);
10          else if (st->id & FLG_CLONE_STACK)
11 -                snprintf(st->class_dev.bus_id, BUS_ID_SIZE, "clst-%08x", st->id);
12 +               dev_set_name(&st->class_dev, "clst-%08x", st->id);
13          else
14 -                snprintf(st->class_dev.bus_id, BUS_ID_SIZE, "st-%08x", st->id);
15 +               dev_set_name(&st->class_dev, "st-%08x", st->id);
16          if (st->mgr)
17                  st->class_dev.parent = st->mgr->class_dev.parent;
18         err = device_register(&st->class_dev);