exynos_tmu.c (3a3a5f15869fa74472c377a556c3d00453403854) exynos_tmu.c (4d3583cd1cb1a51825f195b2cfe8b855827803eb)
1/*
2 * exynos_tmu.c - Samsung EXYNOS TMU (Thermal Management Unit)
3 *
4 * Copyright (C) 2014 Samsung Electronics
5 * Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
6 * Lukasz Majewski <l.majewski@samsung.com>
7 *
8 * Copyright (C) 2011 Samsung Electronics

--- 1296 unchanged lines hidden (view full) ---

1305 platform_set_drvdata(pdev, data);
1306 mutex_init(&data->lock);
1307
1308 /*
1309 * Try enabling the regulator if found
1310 * TODO: Add regulator as an SOC feature, so that regulator enable
1311 * is a compulsory call.
1312 */
1/*
2 * exynos_tmu.c - Samsung EXYNOS TMU (Thermal Management Unit)
3 *
4 * Copyright (C) 2014 Samsung Electronics
5 * Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
6 * Lukasz Majewski <l.majewski@samsung.com>
7 *
8 * Copyright (C) 2011 Samsung Electronics

--- 1296 unchanged lines hidden (view full) ---

1305 platform_set_drvdata(pdev, data);
1306 mutex_init(&data->lock);
1307
1308 /*
1309 * Try enabling the regulator if found
1310 * TODO: Add regulator as an SOC feature, so that regulator enable
1311 * is a compulsory call.
1312 */
1313 data->regulator = devm_regulator_get(&pdev->dev, "vtmu");
1313 data->regulator = devm_regulator_get_optional(&pdev->dev, "vtmu");
1314 if (!IS_ERR(data->regulator)) {
1315 ret = regulator_enable(data->regulator);
1316 if (ret) {
1317 dev_err(&pdev->dev, "failed to enable vtmu\n");
1318 return ret;
1319 }
1320 } else {
1321 dev_info(&pdev->dev, "Regulator node (vtmu) not found\n");

--- 159 unchanged lines hidden ---
1314 if (!IS_ERR(data->regulator)) {
1315 ret = regulator_enable(data->regulator);
1316 if (ret) {
1317 dev_err(&pdev->dev, "failed to enable vtmu\n");
1318 return ret;
1319 }
1320 } else {
1321 dev_info(&pdev->dev, "Regulator node (vtmu) not found\n");

--- 159 unchanged lines hidden ---