2023-04-03 16:59:14 +01:00
|
|
|
#include <socks/device.h>
|
|
|
|
|
|
|
|
|
|
struct bus_device *bus_device_create(void)
|
|
|
|
|
{
|
|
|
|
|
struct device *dev = device_alloc();
|
|
|
|
|
if (!dev) {
|
|
|
|
|
return NULL;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
dev->dev_type = DEV_TYPE_BUS;
|
2023-06-02 19:35:07 +01:00
|
|
|
|
2023-04-03 16:59:14 +01:00
|
|
|
return BUS_DEVICE(dev);
|
|
|
|
|
}
|