John Garry | e8899fa | 2015-11-18 00:50:30 +0800 | [diff] [blame^] | 1 | /* |
| 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 | |
| 15 | static struct scsi_transport_template *hisi_sas_stt; |
| 16 | |
| 17 | static struct sas_domain_function_template hisi_sas_transport_ops = { |
| 18 | }; |
| 19 | |
| 20 | static __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 | |
| 31 | static __exit void hisi_sas_exit(void) |
| 32 | { |
| 33 | sas_release_transport(hisi_sas_stt); |
| 34 | } |
| 35 | |
| 36 | module_init(hisi_sas_init); |
| 37 | module_exit(hisi_sas_exit); |
| 38 | |
| 39 | MODULE_VERSION(DRV_VERSION); |
| 40 | MODULE_LICENSE("GPL"); |
| 41 | MODULE_AUTHOR("John Garry <john.garry@huawei.com>"); |
| 42 | MODULE_DESCRIPTION("HISILICON SAS controller driver"); |
| 43 | MODULE_ALIAS("platform:" DRV_NAME); |