1 // SPDX-License-Identifier: ISC
2 /*
3  * Copyright (c) 2014-2016 Qualcomm Atheros, Inc.
4  */
5 
6 #include <linux/device.h>
7 #include "wil_platform.h"
8 
9 int __init wil_platform_modinit(void)
10 {
11 	return 0;
12 }
13 
14 void wil_platform_modexit(void)
15 {
16 }
17 
18 /**
19  * wil_platform_init() - wil6210 platform module init
20  *
21  * The function must be called before all other functions in this module.
22  * It returns a handle which is used with the rest of the API
23  *
24  */
25 void *wil_platform_init(struct device *dev, struct wil_platform_ops *ops,
26 			const struct wil_platform_rops *rops, void *wil_handle)
27 {
28 	void *handle = ops; /* to return some non-NULL for 'void' impl. */
29 
30 	if (!ops) {
31 		dev_err(dev,
32 			"Invalid parameter. Cannot init platform module\n");
33 		return NULL;
34 	}
35 
36 	/* platform specific init functions should be called here */
37 
38 	return handle;
39 }
40