diff options
Diffstat (limited to 'drivers/ata/sata_highbank.c')
-rw-r--r-- | drivers/ata/sata_highbank.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/drivers/ata/sata_highbank.c b/drivers/ata/sata_highbank.c index 7f5e5d96327f..ea3b3dc10f33 100644 --- a/drivers/ata/sata_highbank.c +++ b/drivers/ata/sata_highbank.c | |||
@@ -343,13 +343,11 @@ static int highbank_initialize_phys(struct device *dev, void __iomem *addr) | |||
343 | { | 343 | { |
344 | struct device_node *sata_node = dev->of_node; | 344 | struct device_node *sata_node = dev->of_node; |
345 | int phy_count = 0, phy, port = 0, i; | 345 | int phy_count = 0, phy, port = 0, i; |
346 | void __iomem *cphy_base[CPHY_PHY_COUNT]; | 346 | void __iomem *cphy_base[CPHY_PHY_COUNT] = {}; |
347 | struct device_node *phy_nodes[CPHY_PHY_COUNT]; | 347 | struct device_node *phy_nodes[CPHY_PHY_COUNT] = {}; |
348 | u32 tx_atten[CPHY_PORT_COUNT]; | 348 | u32 tx_atten[CPHY_PORT_COUNT] = {}; |
349 | 349 | ||
350 | memset(port_data, 0, sizeof(struct phy_lane_info) * CPHY_PORT_COUNT); | 350 | memset(port_data, 0, sizeof(struct phy_lane_info) * CPHY_PORT_COUNT); |
351 | memset(phy_nodes, 0, sizeof(struct device_node*) * CPHY_PHY_COUNT); | ||
352 | memset(tx_atten, 0xff, CPHY_PORT_COUNT); | ||
353 | 351 | ||
354 | do { | 352 | do { |
355 | u32 tmp; | 353 | u32 tmp; |