Hi Yong,
the time of clock registering (normally at board initialization or other early stage of boot up), debug fs system has not been initialized (happends in core_initcall). Therefore, it is better to leave it in a standalone function which will be called in late_initcall.
If you rely on discovering all clocks in an initcall, then you will miss any clocks that are added after this stage (eg, from modules).
I'd suggest allowing clk_debug_register to be called at any time, then you will not have any timing issues.
Regards,
Jeremy