Message ID | 201108140155.05625.rjw@sisk.pl (mailing list archive) |
---|---|
State | Rejected |
Headers | show |
Am Sonntag 14 August 2011, 01:55:05 schrieb Rafael J. Wysocki: > On Sunday, August 14, 2011, Peter Huewe wrote: > > This patch fixes a build failure with the ap4evb_defconfig by adding the > > missing #ifdef CONFIG_PM. > > This is not the right fix. Besides, you seem to be testing linux-next > and the build problem is in the linux-pm tree. > > Please check if the appended patch fixes the problem for you. > > Rafael Works for me - compiles ;) Reviewed-by: Peter Huewe <peterhuewe@gmx.de> -- To unsubscribe from this list: send the line "unsubscribe linux-sh" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
On Monday, August 15, 2011, Peter Hüwe wrote: > Am Sonntag 14 August 2011, 01:55:05 schrieb Rafael J. Wysocki: > > On Sunday, August 14, 2011, Peter Huewe wrote: > > > This patch fixes a build failure with the ap4evb_defconfig by adding the > > > missing #ifdef CONFIG_PM. > > > > This is not the right fix. Besides, you seem to be testing linux-next > > and the build problem is in the linux-pm tree. > > > > Please check if the appended patch fixes the problem for you. > > > > Rafael > Works for me - compiles ;) > > Reviewed-by: Peter Huewe <peterhuewe@gmx.de> Good, thanks for testing! I have folded the fix into the patch that caused the problem, so this should be fixed in linux-next now. Thanks, Rafael -- To unsubscribe from this list: send the line "unsubscribe linux-sh" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Index: linux/arch/arm/mach-shmobile/include/mach/sh7372.h =================================================================== --- linux.orig/arch/arm/mach-shmobile/include/mach/sh7372.h +++ linux/arch/arm/mach-shmobile/include/mach/sh7372.h @@ -494,9 +494,12 @@ extern struct sh7372_pm_domain sh7372_a3 extern void sh7372_init_pm_domain(struct sh7372_pm_domain *sh7372_pd); extern void sh7372_add_device_to_domain(struct sh7372_pm_domain *sh7372_pd, struct platform_device *pdev); +extern void sh7372_pm_add_subdomain(struct sh7372_pm_domain *sh7372_pd, + struct sh7372_pm_domain *sh7372_sd); #else #define sh7372_init_pm_domain(pd) do { } while(0) #define sh7372_add_device_to_domain(pd, pdev) do { } while(0) +#define sh7372_pm_add_subdomain(pd, sd) do { } while(0) #endif /* CONFIG_PM */ #endif /* __ASM_SH7372_H__ */ Index: linux/arch/arm/mach-shmobile/setup-sh7372.c =================================================================== --- linux.orig/arch/arm/mach-shmobile/setup-sh7372.c +++ linux/arch/arm/mach-shmobile/setup-sh7372.c @@ -849,7 +849,7 @@ void __init sh7372_add_standard_devices( sh7372_init_pm_domain(&sh7372_a3ri); sh7372_init_pm_domain(&sh7372_a3sg); - pm_genpd_add_subdomain(&sh7372_a4lc.genpd, &sh7372_a3rv.genpd); + sh7372_pm_add_subdomain(&sh7372_a4lc, &sh7372_a3rv); platform_add_devices(sh7372_early_devices, ARRAY_SIZE(sh7372_early_devices)); Index: linux/arch/arm/mach-shmobile/pm-sh7372.c =================================================================== --- linux.orig/arch/arm/mach-shmobile/pm-sh7372.c +++ linux/arch/arm/mach-shmobile/pm-sh7372.c @@ -119,6 +119,12 @@ void sh7372_add_device_to_domain(struct pm_clk_add(dev, NULL); } +void sh7372_pm_add_subdomain(struct sh7372_pm_domain *sh7372_pd, + struct sh7372_pm_domain *sh7372_sd) +{ + pm_genpd_add_subdomain(&sh7372_pd->genpd, &sh7372_sd->genpd); +} + struct sh7372_pm_domain sh7372_a4lc = { .bit_shift = 1, };