hello all When driver register rtc_alarm_interface by class_interface_register (),it wil call below code: ==== if (class_intf->add_dev) { list_for_each_entry(dev, &parent->devices, node) class_intf->add_dev(dev, class_intf); } ==== Then rtc_alarm_add_device() will add at least one device to the interface.But in rtc_alarm_add_device() driver do device specific thing such as misc_register().
Though alarm_rtc_dev has value when exit the function the first time, the latter call will just return -EBUSY ,i think this is not a good design. Thanks Hamody ============ 自由之精神,独立之人格 ============ --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---