Revert "soc: versatile: realview: fix soc_dev leak during device remove"
This reverts commit 7beff7e7a7
.
This commit is contained in:
parent
a05d3aba2a
commit
e25b05e0b3
1 changed files with 0 additions and 13 deletions
|
@ -4,7 +4,6 @@
|
|||
*
|
||||
* Author: Linus Walleij <linus.walleij@linaro.org>
|
||||
*/
|
||||
#include <linux/device.h>
|
||||
#include <linux/init.h>
|
||||
#include <linux/io.h>
|
||||
#include <linux/slab.h>
|
||||
|
@ -82,13 +81,6 @@ static struct attribute *realview_attrs[] = {
|
|||
|
||||
ATTRIBUTE_GROUPS(realview);
|
||||
|
||||
static void realview_soc_socdev_release(void *data)
|
||||
{
|
||||
struct soc_device *soc_dev = data;
|
||||
|
||||
soc_device_unregister(soc_dev);
|
||||
}
|
||||
|
||||
static int realview_soc_probe(struct platform_device *pdev)
|
||||
{
|
||||
struct regmap *syscon_regmap;
|
||||
|
@ -117,11 +109,6 @@ static int realview_soc_probe(struct platform_device *pdev)
|
|||
if (IS_ERR(soc_dev))
|
||||
return -ENODEV;
|
||||
|
||||
ret = devm_add_action_or_reset(&pdev->dev, realview_soc_socdev_release,
|
||||
soc_dev);
|
||||
if (ret)
|
||||
return ret;
|
||||
|
||||
ret = regmap_read(syscon_regmap, REALVIEW_SYS_ID_OFFSET,
|
||||
&realview_coreid);
|
||||
if (ret)
|
||||
|
|
Loading…
Reference in a new issue