@@ -614,8 +614,15 @@ int wm831x_set_bits(struct wm831x *wm831x, unsigned short reg,
614614}
615615EXPORT_SYMBOL_GPL (wm831x_set_bits );
616616
617+ static struct resource wm831x_io_parent = {
618+ .start = 0 ,
619+ .end = 0xffffffff ,
620+ .flags = IORESOURCE_IO ,
621+ };
622+
617623static struct resource wm831x_dcdc1_resources [] = {
618624 {
625+ .parent = & wm831x_io_parent ,
619626 .start = WM831X_DC1_CONTROL_1 ,
620627 .end = WM831X_DC1_DVS_CONTROL ,
621628 .flags = IORESOURCE_IO ,
@@ -637,6 +644,7 @@ static struct resource wm831x_dcdc1_resources[] = {
637644
638645static struct resource wm831x_dcdc2_resources [] = {
639646 {
647+ .parent = & wm831x_io_parent ,
640648 .start = WM831X_DC2_CONTROL_1 ,
641649 .end = WM831X_DC2_DVS_CONTROL ,
642650 .flags = IORESOURCE_IO ,
@@ -657,6 +665,7 @@ static struct resource wm831x_dcdc2_resources[] = {
657665
658666static struct resource wm831x_dcdc3_resources [] = {
659667 {
668+ .parent = & wm831x_io_parent ,
660669 .start = WM831X_DC3_CONTROL_1 ,
661670 .end = WM831X_DC3_SLEEP_CONTROL ,
662671 .flags = IORESOURCE_IO ,
@@ -671,6 +680,7 @@ static struct resource wm831x_dcdc3_resources[] = {
671680
672681static struct resource wm831x_dcdc4_resources [] = {
673682 {
683+ .parent = & wm831x_io_parent ,
674684 .start = WM831X_DC4_CONTROL ,
675685 .end = WM831X_DC4_SLEEP_CONTROL ,
676686 .flags = IORESOURCE_IO ,
@@ -685,6 +695,7 @@ static struct resource wm831x_dcdc4_resources[] = {
685695
686696static struct resource wm8320_dcdc4_buck_resources [] = {
687697 {
698+ .parent = & wm831x_io_parent ,
688699 .start = WM831X_DC4_CONTROL ,
689700 .end = WM832X_DC4_SLEEP_CONTROL ,
690701 .flags = IORESOURCE_IO ,
@@ -707,6 +718,7 @@ static struct resource wm831x_gpio_resources[] = {
707718
708719static struct resource wm831x_isink1_resources [] = {
709720 {
721+ .parent = & wm831x_io_parent ,
710722 .start = WM831X_CURRENT_SINK_1 ,
711723 .end = WM831X_CURRENT_SINK_1 ,
712724 .flags = IORESOURCE_IO ,
@@ -720,6 +732,7 @@ static struct resource wm831x_isink1_resources[] = {
720732
721733static struct resource wm831x_isink2_resources [] = {
722734 {
735+ .parent = & wm831x_io_parent ,
723736 .start = WM831X_CURRENT_SINK_2 ,
724737 .end = WM831X_CURRENT_SINK_2 ,
725738 .flags = IORESOURCE_IO ,
@@ -733,6 +746,7 @@ static struct resource wm831x_isink2_resources[] = {
733746
734747static struct resource wm831x_ldo1_resources [] = {
735748 {
749+ .parent = & wm831x_io_parent ,
736750 .start = WM831X_LDO1_CONTROL ,
737751 .end = WM831X_LDO1_SLEEP_CONTROL ,
738752 .flags = IORESOURCE_IO ,
@@ -747,6 +761,7 @@ static struct resource wm831x_ldo1_resources[] = {
747761
748762static struct resource wm831x_ldo2_resources [] = {
749763 {
764+ .parent = & wm831x_io_parent ,
750765 .start = WM831X_LDO2_CONTROL ,
751766 .end = WM831X_LDO2_SLEEP_CONTROL ,
752767 .flags = IORESOURCE_IO ,
@@ -761,6 +776,7 @@ static struct resource wm831x_ldo2_resources[] = {
761776
762777static struct resource wm831x_ldo3_resources [] = {
763778 {
779+ .parent = & wm831x_io_parent ,
764780 .start = WM831X_LDO3_CONTROL ,
765781 .end = WM831X_LDO3_SLEEP_CONTROL ,
766782 .flags = IORESOURCE_IO ,
@@ -775,6 +791,7 @@ static struct resource wm831x_ldo3_resources[] = {
775791
776792static struct resource wm831x_ldo4_resources [] = {
777793 {
794+ .parent = & wm831x_io_parent ,
778795 .start = WM831X_LDO4_CONTROL ,
779796 .end = WM831X_LDO4_SLEEP_CONTROL ,
780797 .flags = IORESOURCE_IO ,
@@ -789,6 +806,7 @@ static struct resource wm831x_ldo4_resources[] = {
789806
790807static struct resource wm831x_ldo5_resources [] = {
791808 {
809+ .parent = & wm831x_io_parent ,
792810 .start = WM831X_LDO5_CONTROL ,
793811 .end = WM831X_LDO5_SLEEP_CONTROL ,
794812 .flags = IORESOURCE_IO ,
@@ -803,6 +821,7 @@ static struct resource wm831x_ldo5_resources[] = {
803821
804822static struct resource wm831x_ldo6_resources [] = {
805823 {
824+ .parent = & wm831x_io_parent ,
806825 .start = WM831X_LDO6_CONTROL ,
807826 .end = WM831X_LDO6_SLEEP_CONTROL ,
808827 .flags = IORESOURCE_IO ,
@@ -817,6 +836,7 @@ static struct resource wm831x_ldo6_resources[] = {
817836
818837static struct resource wm831x_ldo7_resources [] = {
819838 {
839+ .parent = & wm831x_io_parent ,
820840 .start = WM831X_LDO7_CONTROL ,
821841 .end = WM831X_LDO7_SLEEP_CONTROL ,
822842 .flags = IORESOURCE_IO ,
@@ -831,6 +851,7 @@ static struct resource wm831x_ldo7_resources[] = {
831851
832852static struct resource wm831x_ldo8_resources [] = {
833853 {
854+ .parent = & wm831x_io_parent ,
834855 .start = WM831X_LDO8_CONTROL ,
835856 .end = WM831X_LDO8_SLEEP_CONTROL ,
836857 .flags = IORESOURCE_IO ,
@@ -845,6 +866,7 @@ static struct resource wm831x_ldo8_resources[] = {
845866
846867static struct resource wm831x_ldo9_resources [] = {
847868 {
869+ .parent = & wm831x_io_parent ,
848870 .start = WM831X_LDO9_CONTROL ,
849871 .end = WM831X_LDO9_SLEEP_CONTROL ,
850872 .flags = IORESOURCE_IO ,
@@ -859,6 +881,7 @@ static struct resource wm831x_ldo9_resources[] = {
859881
860882static struct resource wm831x_ldo10_resources [] = {
861883 {
884+ .parent = & wm831x_io_parent ,
862885 .start = WM831X_LDO10_CONTROL ,
863886 .end = WM831X_LDO10_SLEEP_CONTROL ,
864887 .flags = IORESOURCE_IO ,
@@ -873,6 +896,7 @@ static struct resource wm831x_ldo10_resources[] = {
873896
874897static struct resource wm831x_ldo11_resources [] = {
875898 {
899+ .parent = & wm831x_io_parent ,
876900 .start = WM831X_LDO11_ON_CONTROL ,
877901 .end = WM831X_LDO11_SLEEP_CONTROL ,
878902 .flags = IORESOURCE_IO ,
@@ -974,6 +998,7 @@ static struct resource wm831x_rtc_resources[] = {
974998
975999static struct resource wm831x_status1_resources [] = {
9761000 {
1001+ .parent = & wm831x_io_parent ,
9771002 .start = WM831X_STATUS_LED_1 ,
9781003 .end = WM831X_STATUS_LED_1 ,
9791004 .flags = IORESOURCE_IO ,
@@ -982,6 +1007,7 @@ static struct resource wm831x_status1_resources[] = {
9821007
9831008static struct resource wm831x_status2_resources [] = {
9841009 {
1010+ .parent = & wm831x_io_parent ,
9851011 .start = WM831X_STATUS_LED_2 ,
9861012 .end = WM831X_STATUS_LED_2 ,
9871013 .flags = IORESOURCE_IO ,
0 commit comments