tty.c (ca37bdd53b5af06d00e792f2415b93206aa2a541) tty.c (8b6b3da765af9600b5edd8e3e84a20523e975884)
1/*
2 RFCOMM implementation for Linux Bluetooth stack (BlueZ).
3 Copyright (C) 2002 Maxim Krasnyansky <maxk@qualcomm.com>
4 Copyright (C) 2002 Marcel Holtmann <marcel@holtmann.org>
5
6 This program is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License version 2 as
8 published by the Free Software Foundation;

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

266
267 rfcomm_dlc_lock(dlc);
268 dlc->data_ready = rfcomm_dev_data_ready;
269 dlc->state_change = rfcomm_dev_state_change;
270 dlc->modem_status = rfcomm_dev_modem_status;
271
272 dlc->owner = dev;
273 dev->dlc = dlc;
1/*
2 RFCOMM implementation for Linux Bluetooth stack (BlueZ).
3 Copyright (C) 2002 Maxim Krasnyansky <maxk@qualcomm.com>
4 Copyright (C) 2002 Marcel Holtmann <marcel@holtmann.org>
5
6 This program is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License version 2 as
8 published by the Free Software Foundation;

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

266
267 rfcomm_dlc_lock(dlc);
268 dlc->data_ready = rfcomm_dev_data_ready;
269 dlc->state_change = rfcomm_dev_state_change;
270 dlc->modem_status = rfcomm_dev_modem_status;
271
272 dlc->owner = dev;
273 dev->dlc = dlc;
274
275 rfcomm_dev_modem_status(dlc, dlc->remote_v24_sig);
276
274 rfcomm_dlc_unlock(dlc);
275
276 /* It's safe to call __module_get() here because socket already
277 holds reference to this module. */
278 __module_get(THIS_MODULE);
279
280out:
281 write_unlock_bh(&rfcomm_dev_lock);

--- 863 unchanged lines hidden ---
277 rfcomm_dlc_unlock(dlc);
278
279 /* It's safe to call __module_get() here because socket already
280 holds reference to this module. */
281 __module_get(THIS_MODULE);
282
283out:
284 write_unlock_bh(&rfcomm_dev_lock);

--- 863 unchanged lines hidden ---