diff options
author | Stephane Viau <sviau@codeaurora.org> | 2015-01-13 14:33:40 -0500 |
---|---|---|
committer | Rob Clark <robdclark@gmail.com> | 2015-02-01 15:32:45 -0500 |
commit | 447fa5292fcf09197cf2ce124e8e0ff6c629733a (patch) | |
tree | 9b617a032cfb35165ed8db1baaaaeec4cadcf9ff /drivers/gpu/drm/msm/hdmi/hdmi.h | |
parent | 5cdde29bc93a1f4d4a4f5a6faa830e368d920280 (diff) |
drm/msm/hdmi: use dynamic allocation for hdmi resources
Instead of reporting BUG_ON when resources arrays are not
dimensioned correctly, this patch does a dynamic allocation of
these arrays. This is needed for the following patches that add a
regulator for a new target.
Signed-off-by: Stephane Viau <sviau@codeaurora.org>
Signed-off-by: Rob Clark <robdclark@gmail.com>
Diffstat (limited to 'drivers/gpu/drm/msm/hdmi/hdmi.h')
-rw-r--r-- | drivers/gpu/drm/msm/hdmi/hdmi.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/gpu/drm/msm/hdmi/hdmi.h b/drivers/gpu/drm/msm/hdmi/hdmi.h index 4d4cad42a776..68fdfb3622a5 100644 --- a/drivers/gpu/drm/msm/hdmi/hdmi.h +++ b/drivers/gpu/drm/msm/hdmi/hdmi.h | |||
@@ -52,10 +52,10 @@ struct hdmi { | |||
52 | 52 | ||
53 | void __iomem *mmio; | 53 | void __iomem *mmio; |
54 | 54 | ||
55 | struct regulator *hpd_regs[2]; | 55 | struct regulator **hpd_regs; |
56 | struct regulator *pwr_regs[2]; | 56 | struct regulator **pwr_regs; |
57 | struct clk *hpd_clks[3]; | 57 | struct clk **hpd_clks; |
58 | struct clk *pwr_clks[2]; | 58 | struct clk **pwr_clks; |
59 | 59 | ||
60 | struct hdmi_phy *phy; | 60 | struct hdmi_phy *phy; |
61 | struct i2c_adapter *i2c; | 61 | struct i2c_adapter *i2c; |