blob: 7201363c45b590063a91a1b1cad74677c6657848 [file] [log] [blame]
John Garrye8899fa2015-11-18 00:50:30 +08001/*
2 * Copyright (c) 2015 Linaro Ltd.
3 * Copyright (c) 2015 Hisilicon Limited.
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
9 *
10 */
11
12#include "hisi_sas.h"
13#define DRV_NAME "hisi_sas"
14
15static struct scsi_transport_template *hisi_sas_stt;
16
17static struct sas_domain_function_template hisi_sas_transport_ops = {
18};
19
20static __init int hisi_sas_init(void)
21{
22 pr_info("hisi_sas: driver version %s\n", DRV_VERSION);
23
24 hisi_sas_stt = sas_domain_attach_transport(&hisi_sas_transport_ops);
25 if (!hisi_sas_stt)
26 return -ENOMEM;
27
28 return 0;
29}
30
31static __exit void hisi_sas_exit(void)
32{
33 sas_release_transport(hisi_sas_stt);
34}
35
36module_init(hisi_sas_init);
37module_exit(hisi_sas_exit);
38
39MODULE_VERSION(DRV_VERSION);
40MODULE_LICENSE("GPL");
41MODULE_AUTHOR("John Garry <john.garry@huawei.com>");
42MODULE_DESCRIPTION("HISILICON SAS controller driver");
43MODULE_ALIAS("platform:" DRV_NAME);