| .. | .. |
|---|
| 60 | 60 | /* |
|---|
| 61 | 61 | * Assigned numbers, used for dynamic minors |
|---|
| 62 | 62 | */ |
|---|
| 63 | | -#define DYNAMIC_MINORS 64 /* like dynamic majors */ |
|---|
| 63 | +#define DYNAMIC_MINORS 128 /* like dynamic majors */ |
|---|
| 64 | 64 | static DECLARE_BITMAP(misc_minors, DYNAMIC_MINORS); |
|---|
| 65 | 65 | |
|---|
| 66 | 66 | #ifdef CONFIG_PROC_FS |
|---|
| .. | .. |
|---|
| 226 | 226 | mutex_unlock(&misc_mtx); |
|---|
| 227 | 227 | return err; |
|---|
| 228 | 228 | } |
|---|
| 229 | +EXPORT_SYMBOL(misc_register); |
|---|
| 229 | 230 | |
|---|
| 230 | 231 | /** |
|---|
| 231 | 232 | * misc_deregister - unregister a miscellaneous device |
|---|
| .. | .. |
|---|
| 249 | 250 | clear_bit(i, misc_minors); |
|---|
| 250 | 251 | mutex_unlock(&misc_mtx); |
|---|
| 251 | 252 | } |
|---|
| 252 | | - |
|---|
| 253 | | -EXPORT_SYMBOL(misc_register); |
|---|
| 254 | 253 | EXPORT_SYMBOL(misc_deregister); |
|---|
| 255 | 254 | |
|---|
| 256 | 255 | static char *misc_devnode(struct device *dev, umode_t *mode) |
|---|
| .. | .. |
|---|
| 289 | 288 | remove_proc_entry("misc", NULL); |
|---|
| 290 | 289 | return err; |
|---|
| 291 | 290 | } |
|---|
| 292 | | -#ifdef CONFIG_ROCKCHIP_THUNDER_BOOT |
|---|
| 293 | | -arch_initcall_sync(misc_init); |
|---|
| 294 | | -#else |
|---|
| 295 | 291 | subsys_initcall(misc_init); |
|---|
| 296 | | -#endif |
|---|