diff options
Diffstat (limited to 'drivers/nfc/microread/microread.c')
-rw-r--r-- | drivers/nfc/microread/microread.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/nfc/microread/microread.c b/drivers/nfc/microread/microread.c index cdb9f6de132a..970ded6bfcf5 100644 --- a/drivers/nfc/microread/microread.c +++ b/drivers/nfc/microread/microread.c | |||
@@ -18,6 +18,8 @@ | |||
18 | * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | 18 | * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
19 | */ | 19 | */ |
20 | 20 | ||
21 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt | ||
22 | |||
21 | #include <linux/module.h> | 23 | #include <linux/module.h> |
22 | #include <linux/delay.h> | 24 | #include <linux/delay.h> |
23 | #include <linux/slab.h> | 25 | #include <linux/slab.h> |
@@ -546,7 +548,7 @@ exit: | |||
546 | kfree_skb(skb); | 548 | kfree_skb(skb); |
547 | 549 | ||
548 | if (r) | 550 | if (r) |
549 | pr_err("Failed to handle discovered target err=%d", r); | 551 | pr_err("Failed to handle discovered target err=%d\n", r); |
550 | } | 552 | } |
551 | 553 | ||
552 | static int microread_event_received(struct nfc_hci_dev *hdev, u8 gate, | 554 | static int microread_event_received(struct nfc_hci_dev *hdev, u8 gate, |
@@ -656,7 +658,6 @@ int microread_probe(void *phy_id, struct nfc_phy_ops *phy_ops, char *llc_name, | |||
656 | 658 | ||
657 | info = kzalloc(sizeof(struct microread_info), GFP_KERNEL); | 659 | info = kzalloc(sizeof(struct microread_info), GFP_KERNEL); |
658 | if (!info) { | 660 | if (!info) { |
659 | pr_err("Cannot allocate memory for microread_info.\n"); | ||
660 | r = -ENOMEM; | 661 | r = -ENOMEM; |
661 | goto err_info_alloc; | 662 | goto err_info_alloc; |
662 | } | 663 | } |
@@ -686,7 +687,7 @@ int microread_probe(void *phy_id, struct nfc_phy_ops *phy_ops, char *llc_name, | |||
686 | MICROREAD_CMD_TAILROOM, | 687 | MICROREAD_CMD_TAILROOM, |
687 | phy_payload); | 688 | phy_payload); |
688 | if (!info->hdev) { | 689 | if (!info->hdev) { |
689 | pr_err("Cannot allocate nfc hdev.\n"); | 690 | pr_err("Cannot allocate nfc hdev\n"); |
690 | r = -ENOMEM; | 691 | r = -ENOMEM; |
691 | goto err_alloc_hdev; | 692 | goto err_alloc_hdev; |
692 | } | 693 | } |