problem with RTC minor and major allocated dynamically
I'm quite new at linux kernel and got some questions.
Usually the major and the minors of RTC are 10 and 135.
But at the rtc-dev.c the mijor is chosen dynamically at __init rtc_dev_init and the rtc_dev_add_device function(which I use to add m41t80 device) use this mijor together with minors that taken from "id" field (it is 0 for the first device, 1 for the second etc).
The problem is that the files system need a node for opening the rtc, which I cannot create staticlly.
Do you have suggestions?
Another thing that I not quitlly understand is why at the linux-188.8.131.52\Documentation\driver-model\class file it is described that for creating a class we got to have a struct device_class with add_device and remove_device functions , and regisger it with devclass_register function, while the i2c-adepter class, i2c-dev class, rtc class are created and registated diffrentlly.