llc.c (8af00d48dc929442644bf68e9cd3d951d9697296) | llc.c (4a61cd6687fc6348d08724676d34e38160d6cf9b) |
---|---|
1/* 2 * Link Layer Control manager 3 * 4 * Copyright (C) 2012 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. --- 12 unchanged lines hidden (view full) --- 21#include <linux/export.h> 22#include <net/nfc/llc.h> 23#include "llc.h" 24 25static struct list_head llc_engines; 26 27int nfc_llc_init(void) 28{ | 1/* 2 * Link Layer Control manager 3 * 4 * Copyright (C) 2012 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. --- 12 unchanged lines hidden (view full) --- 21#include <linux/export.h> 22#include <net/nfc/llc.h> 23#include "llc.h" 24 25static struct list_head llc_engines; 26 27int nfc_llc_init(void) 28{ |
29 int r; 30 |
|
29 INIT_LIST_HEAD(&llc_engines); 30 | 31 INIT_LIST_HEAD(&llc_engines); 32 |
31 return nfc_llc_nop_register(); | 33 r = nfc_llc_nop_register(); 34 if (r) 35 goto exit; 36 37 r = nfc_llc_shdlc_register(); 38 if (r) 39 goto exit; 40 41 return 0; 42 43exit: 44 nfc_llc_exit(); 45 return r; |
32} 33EXPORT_SYMBOL(nfc_llc_init); 34 35void nfc_llc_exit(void) 36{ 37 struct nfc_llc_engine *llc_engine, *n; 38 39 list_for_each_entry_safe(llc_engine, n, &llc_engines, entry) { --- 129 unchanged lines hidden --- | 46} 47EXPORT_SYMBOL(nfc_llc_init); 48 49void nfc_llc_exit(void) 50{ 51 struct nfc_llc_engine *llc_engine, *n; 52 53 list_for_each_entry_safe(llc_engine, n, &llc_engines, entry) { --- 129 unchanged lines hidden --- |