apr.c (6397859c8e9d87190f49dabbb835114ad0ea9fcb) apr.c (2a81ada32f0e584fc0c943e0d3a8c9f4fae411d6)
1// SPDX-License-Identifier: GPL-2.0
2// Copyright (c) 2011-2017, The Linux Foundation. All rights reserved.
3// Copyright (c) 2018, Linaro Limited
4
5#include <linux/kernel.h>
6#include <linux/module.h>
7#include <linux/device.h>
8#include <linux/spinlock.h>

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

382
383 if (adrv->remove)
384 adrv->remove(adev);
385 spin_lock(&apr->svcs_lock);
386 idr_remove(&apr->svcs_idr, adev->svc.id);
387 spin_unlock(&apr->svcs_lock);
388}
389
1// SPDX-License-Identifier: GPL-2.0
2// Copyright (c) 2011-2017, The Linux Foundation. All rights reserved.
3// Copyright (c) 2018, Linaro Limited
4
5#include <linux/kernel.h>
6#include <linux/module.h>
7#include <linux/device.h>
8#include <linux/spinlock.h>

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

382
383 if (adrv->remove)
384 adrv->remove(adev);
385 spin_lock(&apr->svcs_lock);
386 idr_remove(&apr->svcs_idr, adev->svc.id);
387 spin_unlock(&apr->svcs_lock);
388}
389
390static int apr_uevent(struct device *dev, struct kobj_uevent_env *env)
390static int apr_uevent(const struct device *dev, struct kobj_uevent_env *env)
391{
391{
392 struct apr_device *adev = to_apr_device(dev);
392 const struct apr_device *adev = to_apr_device(dev);
393 int ret;
394
395 ret = of_device_uevent_modalias(dev, env);
396 if (ret != -ENODEV)
397 return ret;
398
399 return add_uevent_var(env, "MODALIAS=apr:%s", adev->name);
400}

--- 336 unchanged lines hidden ---
393 int ret;
394
395 ret = of_device_uevent_modalias(dev, env);
396 if (ret != -ENODEV)
397 return ret;
398
399 return add_uevent_var(env, "MODALIAS=apr:%s", adev->name);
400}

--- 336 unchanged lines hidden ---