stmpe.c (820e9906cf64142169134f35b996108303cf22ca) | stmpe.c (356bbabade8e56efe2834159b5c062b8aff277dd) |
---|---|
1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * ST Microelectronics MFD: stmpe's driver 4 * 5 * Copyright (C) ST-Ericsson SA 2010 6 * 7 * Author: Rabin Vincent <rabin.vincent@stericsson.com> for ST-Ericsson 8 */ --- 1482 unchanged lines hidden (view full) --- 1491 return 0; 1492 1493 dev_err(stmpe->dev, "failed to add children\n"); 1494 mfd_remove_devices(stmpe->dev); 1495 1496 return ret; 1497} 1498 | 1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * ST Microelectronics MFD: stmpe's driver 4 * 5 * Copyright (C) ST-Ericsson SA 2010 6 * 7 * Author: Rabin Vincent <rabin.vincent@stericsson.com> for ST-Ericsson 8 */ --- 1482 unchanged lines hidden (view full) --- 1491 return 0; 1492 1493 dev_err(stmpe->dev, "failed to add children\n"); 1494 mfd_remove_devices(stmpe->dev); 1495 1496 return ret; 1497} 1498 |
1499int stmpe_remove(struct stmpe *stmpe) | 1499void stmpe_remove(struct stmpe *stmpe) |
1500{ 1501 if (!IS_ERR(stmpe->vio)) 1502 regulator_disable(stmpe->vio); 1503 if (!IS_ERR(stmpe->vcc)) 1504 regulator_disable(stmpe->vcc); 1505 1506 __stmpe_disable(stmpe, STMPE_BLOCK_ADC); 1507 1508 mfd_remove_devices(stmpe->dev); | 1500{ 1501 if (!IS_ERR(stmpe->vio)) 1502 regulator_disable(stmpe->vio); 1503 if (!IS_ERR(stmpe->vcc)) 1504 regulator_disable(stmpe->vcc); 1505 1506 __stmpe_disable(stmpe, STMPE_BLOCK_ADC); 1507 1508 mfd_remove_devices(stmpe->dev); |
1509 1510 return 0; | |
1511} 1512 1513#ifdef CONFIG_PM 1514static int stmpe_suspend(struct device *dev) 1515{ 1516 struct stmpe *stmpe = dev_get_drvdata(dev); 1517 1518 if (stmpe->irq >= 0 && device_may_wakeup(dev)) --- 20 unchanged lines hidden --- | 1509} 1510 1511#ifdef CONFIG_PM 1512static int stmpe_suspend(struct device *dev) 1513{ 1514 struct stmpe *stmpe = dev_get_drvdata(dev); 1515 1516 if (stmpe->irq >= 0 && device_may_wakeup(dev)) --- 20 unchanged lines hidden --- |