bus.c (ffb1e76f4f32d2b8ea4189df0484980370476395) | bus.c (244f5d597e1ea519c2085fbd9819458688775e42) |
---|---|
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> --- 35 unchanged lines hidden (view full) --- 44static int ffa_device_probe(struct device *dev) 45{ 46 struct ffa_driver *ffa_drv = to_ffa_driver(dev->driver); 47 struct ffa_device *ffa_dev = to_ffa_dev(dev); 48 49 return ffa_drv->probe(ffa_dev); 50} 51 | 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> --- 35 unchanged lines hidden (view full) --- 44static int ffa_device_probe(struct device *dev) 45{ 46 struct ffa_driver *ffa_drv = to_ffa_driver(dev->driver); 47 struct ffa_device *ffa_dev = to_ffa_dev(dev); 48 49 return ffa_drv->probe(ffa_dev); 50} 51 |
52static void ffa_device_remove(struct device *dev) 53{ 54 struct ffa_driver *ffa_drv = to_ffa_driver(dev->driver); 55 56 ffa_drv->remove(to_ffa_dev(dev)); 57} 58 |
|
52static int ffa_device_uevent(struct device *dev, struct kobj_uevent_env *env) 53{ 54 struct ffa_device *ffa_dev = to_ffa_dev(dev); 55 56 return add_uevent_var(env, "MODALIAS=arm_ffa:%04x:%pUb", 57 ffa_dev->vm_id, &ffa_dev->uuid); 58} 59 --- 21 unchanged lines hidden (view full) --- 81 NULL, 82}; 83ATTRIBUTE_GROUPS(ffa_device_attributes); 84 85struct bus_type ffa_bus_type = { 86 .name = "arm_ffa", 87 .match = ffa_device_match, 88 .probe = ffa_device_probe, | 59static int ffa_device_uevent(struct device *dev, struct kobj_uevent_env *env) 60{ 61 struct ffa_device *ffa_dev = to_ffa_dev(dev); 62 63 return add_uevent_var(env, "MODALIAS=arm_ffa:%04x:%pUb", 64 ffa_dev->vm_id, &ffa_dev->uuid); 65} 66 --- 21 unchanged lines hidden (view full) --- 88 NULL, 89}; 90ATTRIBUTE_GROUPS(ffa_device_attributes); 91 92struct bus_type ffa_bus_type = { 93 .name = "arm_ffa", 94 .match = ffa_device_match, 95 .probe = ffa_device_probe, |
96 .remove = ffa_device_remove, |
|
89 .uevent = ffa_device_uevent, 90 .dev_groups = ffa_device_attributes_groups, 91}; 92EXPORT_SYMBOL_GPL(ffa_bus_type); 93 94int ffa_driver_register(struct ffa_driver *driver, struct module *owner, 95 const char *mod_name) 96{ --- 114 unchanged lines hidden --- | 97 .uevent = ffa_device_uevent, 98 .dev_groups = ffa_device_attributes_groups, 99}; 100EXPORT_SYMBOL_GPL(ffa_bus_type); 101 102int ffa_driver_register(struct ffa_driver *driver, struct module *owner, 103 const char *mod_name) 104{ --- 114 unchanged lines hidden --- |