drm/nouveau: consume the return of large GSP message
[drm/drm-misc.git] / drivers / net / wireless / ath / wil6210 / wil_platform.c
blobe152dc29d177bd2eaa67c4b39952e3ec7e67cfcd
1 // SPDX-License-Identifier: ISC
2 /*
3 * Copyright (c) 2014-2016 Qualcomm Atheros, Inc.
4 */
6 #include <linux/device.h>
7 #include "wil_platform.h"
9 int __init wil_platform_modinit(void)
11 return 0;
14 void wil_platform_modexit(void)
18 /* wil_platform_init() - wil6210 platform module init
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
24 void *wil_platform_init(struct device *dev, struct wil_platform_ops *ops,
25 const struct wil_platform_rops *rops, void *wil_handle)
27 void *handle = ops; /* to return some non-NULL for 'void' impl. */
29 if (!ops) {
30 dev_err(dev,
31 "Invalid parameter. Cannot init platform module\n");
32 return NULL;
35 /* platform specific init functions should be called here */
37 return handle;