diff options
| -rw-r--r-- | arch/arm/plat-omap/omap_device.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/arch/arm/plat-omap/omap_device.c b/arch/arm/plat-omap/omap_device.c index f899603051ac..f9dec0d32fa4 100644 --- a/arch/arm/plat-omap/omap_device.c +++ b/arch/arm/plat-omap/omap_device.c | |||
| @@ -359,7 +359,7 @@ struct omap_device *omap_device_build_ss(const char *pdev_name, int pdev_id, | |||
| 359 | struct omap_device *od; | 359 | struct omap_device *od; |
| 360 | char *pdev_name2; | 360 | char *pdev_name2; |
| 361 | struct resource *res = NULL; | 361 | struct resource *res = NULL; |
| 362 | int res_count; | 362 | int i, res_count; |
| 363 | struct omap_hwmod **hwmods; | 363 | struct omap_hwmod **hwmods; |
| 364 | 364 | ||
| 365 | if (!ohs || oh_cnt == 0 || !pdev_name) | 365 | if (!ohs || oh_cnt == 0 || !pdev_name) |
| @@ -416,6 +416,9 @@ struct omap_device *omap_device_build_ss(const char *pdev_name, int pdev_id, | |||
| 416 | else | 416 | else |
| 417 | ret = omap_device_register(od); | 417 | ret = omap_device_register(od); |
| 418 | 418 | ||
| 419 | for (i = 0; i < oh_cnt; i++) | ||
| 420 | hwmods[i]->od = od; | ||
| 421 | |||
| 419 | if (ret) | 422 | if (ret) |
| 420 | goto odbs_exit4; | 423 | goto odbs_exit4; |
| 421 | 424 | ||
