Commit 8b2de74
mips: sibyte: make tb_class constant
Since commit 43a7206 ("driver core: class: make class_register() take
a const *"), the driver core allows for struct class to be in read-only
memory, so move the tb_class structure to be declared at build time placing
it into read-only memory, instead of having to be dynamically allocated at
boot time.
Cc: Greg Kroah-Hartman <[email protected]>
Suggested-by: Greg Kroah-Hartman <[email protected]>
Signed-off-by: Ricardo B. Marliere <[email protected]>
Signed-off-by: Thomas Bogendoerfer <[email protected]>1 parent e5d9592 commit 8b2de74
1 file changed
+9
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
535 | 535 | | |
536 | 536 | | |
537 | 537 | | |
538 | | - | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
539 | 541 | | |
540 | 542 | | |
541 | 543 | | |
542 | 544 | | |
543 | 545 | | |
544 | | - | |
545 | 546 | | |
546 | 547 | | |
547 | 548 | | |
| |||
550 | 551 | | |
551 | 552 | | |
552 | 553 | | |
553 | | - | |
554 | | - | |
555 | | - | |
| 554 | + | |
| 555 | + | |
556 | 556 | | |
557 | | - | |
558 | | - | |
559 | | - | |
560 | 557 | | |
561 | | - | |
| 558 | + | |
562 | 559 | | |
563 | 560 | | |
564 | 561 | | |
| |||
573 | 570 | | |
574 | 571 | | |
575 | 572 | | |
576 | | - | |
| 573 | + | |
577 | 574 | | |
578 | 575 | | |
579 | 576 | | |
| |||
582 | 579 | | |
583 | 580 | | |
584 | 581 | | |
585 | | - | |
| 582 | + | |
586 | 583 | | |
587 | | - | |
| 584 | + | |
588 | 585 | | |
589 | 586 | | |
590 | 587 | | |
| |||
0 commit comments