bus.c (244f5d597e1ea519c2085fbd9819458688775e42) bus.c (eb7b52e6db7c21400b9b2d539f9343fb6e94bd94)
1// SPDX-License-Identifier: GPL-2.0
2/*
3 * Copyright (C) 2021 ARM Ltd.
4 */
5
6#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
7
8#include <linux/arm_ffa.h>

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

130{
131 struct ffa_device *ffa_dev = to_ffa_dev(dev);
132
133 kfree(ffa_dev);
134}
135
136static int __ffa_devices_unregister(struct device *dev, void *data)
137{
1// SPDX-License-Identifier: GPL-2.0
2/*
3 * Copyright (C) 2021 ARM Ltd.
4 */
5
6#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
7
8#include <linux/arm_ffa.h>

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

130{
131 struct ffa_device *ffa_dev = to_ffa_dev(dev);
132
133 kfree(ffa_dev);
134}
135
136static int __ffa_devices_unregister(struct device *dev, void *data)
137{
138 ffa_release_device(dev);
138 device_unregister(dev);
139
140 return 0;
141}
142
143static void ffa_devices_unregister(void)
144{
145 bus_for_each_dev(&ffa_bus_type, NULL, NULL,
146 __ffa_devices_unregister);

--- 72 unchanged lines hidden ---
139
140 return 0;
141}
142
143static void ffa_devices_unregister(void)
144{
145 bus_for_each_dev(&ffa_bus_type, NULL, NULL,
146 __ffa_devices_unregister);

--- 72 unchanged lines hidden ---