2019-10-28 20:24:37 +03:00
|
|
|
// SPDX-License-Identifier: ISC
|
2014-09-10 17:34:35 +04:00
|
|
|
/*
|
2019-10-28 20:24:37 +03:00
|
|
|
* Copyright (c) 2014-2016 Qualcomm Atheros, Inc.
|
2014-09-10 17:34:35 +04:00
|
|
|
*/
|
|
|
|
|
2015-07-30 13:51:52 +03:00
|
|
|
#include <linux/device.h>
|
2014-09-10 17:34:35 +04:00
|
|
|
#include "wil_platform.h"
|
|
|
|
|
2015-06-09 14:11:19 +03:00
|
|
|
int __init wil_platform_modinit(void)
|
|
|
|
{
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
void wil_platform_modexit(void)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2020-08-27 10:38:32 +03:00
|
|
|
/* wil_platform_init() - wil6210 platform module init
|
2014-09-10 17:34:35 +04:00
|
|
|
*
|
|
|
|
* The function must be called before all other functions in this module.
|
|
|
|
* It returns a handle which is used with the rest of the API
|
|
|
|
*
|
|
|
|
*/
|
2015-12-16 18:51:46 +03:00
|
|
|
void *wil_platform_init(struct device *dev, struct wil_platform_ops *ops,
|
|
|
|
const struct wil_platform_rops *rops, void *wil_handle)
|
2014-09-10 17:34:35 +04:00
|
|
|
{
|
2015-06-09 14:11:19 +03:00
|
|
|
void *handle = ops; /* to return some non-NULL for 'void' impl. */
|
2014-09-10 17:34:35 +04:00
|
|
|
|
|
|
|
if (!ops) {
|
2015-06-09 14:11:19 +03:00
|
|
|
dev_err(dev,
|
|
|
|
"Invalid parameter. Cannot init platform module\n");
|
2014-09-10 17:34:35 +04:00
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
2015-02-01 11:55:16 +03:00
|
|
|
/* platform specific init functions should be called here */
|
2014-09-10 17:34:35 +04:00
|
|
|
|
|
|
|
return handle;
|
|
|
|
}
|