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
9int __init wil_platform_modinit(void)
10{
11	return 0;
12}
13
14void wil_platform_modexit(void)
15{
16}
17
18/* wil_platform_init() - wil6210 platform module init
19 *
20 * The function must be called before all other functions in this module.
21 * It returns a handle which is used with the rest of the API
22 *
23 */
24void *wil_platform_init(struct device *dev, struct wil_platform_ops *ops,
25			const struct wil_platform_rops *rops, void *wil_handle)
26{
27	void *handle = ops; /* to return some non-NULL for 'void' impl. */
28
29	if (!ops) {
30		dev_err(dev,
31			"Invalid parameter. Cannot init platform module\n");
32		return NULL;
33	}
34
35	/* platform specific init functions should be called here */
36
37	return handle;
38}
39