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

============
自由之精神,独立之人格
============
--~--~---------~--~----~------------~-------~--~----~
unsubscribe: [EMAIL PROTECTED]
website: http://groups.google.com/group/android-porting
-~----------~----~----~----~------~----~------~--~---

Reply via email to