diff options
Diffstat (limited to 'drivers/video/fsl-diu-fb.c')
-rw-r--r-- | drivers/video/fsl-diu-fb.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/drivers/video/fsl-diu-fb.c b/drivers/video/fsl-diu-fb.c index 9cd36c223d33..bd320a2bfb7c 100644 --- a/drivers/video/fsl-diu-fb.c +++ b/drivers/video/fsl-diu-fb.c | |||
@@ -1649,8 +1649,10 @@ static int __init fsl_diu_init(void) | |||
1649 | } | 1649 | } |
1650 | 1650 | ||
1651 | prop = of_get_property(np, "d-cache-size", NULL); | 1651 | prop = of_get_property(np, "d-cache-size", NULL); |
1652 | if (prop == NULL) | 1652 | if (prop == NULL) { |
1653 | of_node_put(np); | ||
1653 | return -ENODEV; | 1654 | return -ENODEV; |
1655 | } | ||
1654 | 1656 | ||
1655 | /* Freescale PLRU requires 13/8 times the cache size to do a proper | 1657 | /* Freescale PLRU requires 13/8 times the cache size to do a proper |
1656 | displacement flush | 1658 | displacement flush |
@@ -1659,8 +1661,10 @@ static int __init fsl_diu_init(void) | |||
1659 | coherence_data_size /= 8; | 1661 | coherence_data_size /= 8; |
1660 | 1662 | ||
1661 | prop = of_get_property(np, "d-cache-line-size", NULL); | 1663 | prop = of_get_property(np, "d-cache-line-size", NULL); |
1662 | if (prop == NULL) | 1664 | if (prop == NULL) { |
1665 | of_node_put(np); | ||
1663 | return -ENODEV; | 1666 | return -ENODEV; |
1667 | } | ||
1664 | d_cache_line_size = *prop; | 1668 | d_cache_line_size = *prop; |
1665 | 1669 | ||
1666 | of_node_put(np); | 1670 | of_node_put(np); |