mei.c (893913822e829f7a37824f6041ff964076374191) mei.c (d49dc5e76fc917e5dfef76cb56fe3b3868deed5d)
1/*
2 * HCI based Driver for Inside Secure microread NFC Chip
3 *
4 * Copyright (C) 2013 Intel Corporation. All rights reserved.
5 *
6 * This program is free software; you can redistribute it and/or modify it
7 * under the terms and conditions of the GNU General Public License,
8 * version 2, as published by the Free Software Foundation.

--- 43 unchanged lines hidden (view full) ---

52 return r;
53 }
54
55 return 0;
56}
57
58static int microread_mei_remove(struct mei_cl_device *cldev)
59{
1/*
2 * HCI based Driver for Inside Secure microread NFC Chip
3 *
4 * Copyright (C) 2013 Intel Corporation. All rights reserved.
5 *
6 * This program is free software; you can redistribute it and/or modify it
7 * under the terms and conditions of the GNU General Public License,
8 * version 2, as published by the Free Software Foundation.

--- 43 unchanged lines hidden (view full) ---

52 return r;
53 }
54
55 return 0;
56}
57
58static int microread_mei_remove(struct mei_cl_device *cldev)
59{
60 struct nfc_mei_phy *phy = mei_cl_get_drvdata(cldev);
60 struct nfc_mei_phy *phy = mei_cldev_get_drvdata(cldev);
61
62 microread_remove(phy->hdev);
63
64 nfc_mei_phy_free(phy);
65
66 return 0;
67}
68

--- 14 unchanged lines hidden (view full) ---

83};
84
85static int microread_mei_init(void)
86{
87 int r;
88
89 pr_debug(DRIVER_DESC ": %s\n", __func__);
90
61
62 microread_remove(phy->hdev);
63
64 nfc_mei_phy_free(phy);
65
66 return 0;
67}
68

--- 14 unchanged lines hidden (view full) ---

83};
84
85static int microread_mei_init(void)
86{
87 int r;
88
89 pr_debug(DRIVER_DESC ": %s\n", __func__);
90
91 r = mei_cl_driver_register(&microread_driver);
91 r = mei_cldev_driver_register(&microread_driver);
92 if (r) {
93 pr_err(MICROREAD_DRIVER_NAME ": driver registration failed\n");
94 return r;
95 }
96
97 return 0;
98}
99
100static void microread_mei_exit(void)
101{
92 if (r) {
93 pr_err(MICROREAD_DRIVER_NAME ": driver registration failed\n");
94 return r;
95 }
96
97 return 0;
98}
99
100static void microread_mei_exit(void)
101{
102 mei_cl_driver_unregister(&microread_driver);
102 mei_cldev_driver_unregister(&microread_driver);
103}
104
105module_init(microread_mei_init);
106module_exit(microread_mei_exit);
107
108MODULE_LICENSE("GPL");
109MODULE_DESCRIPTION(DRIVER_DESC);
103}
104
105module_init(microread_mei_init);
106module_exit(microread_mei_exit);
107
108MODULE_LICENSE("GPL");
109MODULE_DESCRIPTION(DRIVER_DESC);