summaryrefslogtreecommitdiff
path: root/drivers/net/netdevsim/bus.c
blob: 26b866b72afce3ef21ed0d4a1311710a00f6ed8f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// SPDX-License-Identifier: GPL-2.0
/* Copyright (C) 2017 Netronome Systems, Inc.
 * Copyright (C) 2019 Mellanox Technologies. All rights reserved
 */

#include <linux/device.h>

#include "netdevsim.h"

struct bus_type nsim_bus = {
	.name		= DRV_NAME,
	.dev_name	= DRV_NAME,
	.num_vf		= nsim_num_vf,
};

int nsim_bus_init(void)
{
	return bus_register(&nsim_bus);
}

void nsim_bus_exit(void)
{
	bus_unregister(&nsim_bus);
}