| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * Copyright (c) 2004 Evgeniy Polyakov <zbr@ioremap.net> |
|---|
| 3 | | - * |
|---|
| 4 | | - * This program is free software; you can redistribute it and/or modify |
|---|
| 5 | | - * it under the terms of the GNU General Public License as published by |
|---|
| 6 | | - * the Free Software Foundation; either version 2 of the License, or |
|---|
| 7 | | - * (at your option) any later version. |
|---|
| 8 | | - * |
|---|
| 9 | | - * This program is distributed in the hope that it will be useful, |
|---|
| 10 | | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|---|
| 11 | | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|---|
| 12 | | - * GNU General Public License for more details. |
|---|
| 13 | 4 | */ |
|---|
| 14 | 5 | |
|---|
| 15 | 6 | #include <linux/kernel.h> |
|---|
| .. | .. |
|---|
| 60 | 51 | dev->search_count = w1_search_count; |
|---|
| 61 | 52 | dev->enable_pullup = w1_enable_pullup; |
|---|
| 62 | 53 | |
|---|
| 63 | | - /* 1 for w1_process to decrement |
|---|
| 64 | | - * 1 for __w1_remove_master_device to decrement |
|---|
| 54 | + /* For __w1_remove_master_device to decrement |
|---|
| 65 | 55 | */ |
|---|
| 66 | | - atomic_set(&dev->refcnt, 2); |
|---|
| 56 | + atomic_set(&dev->refcnt, 1); |
|---|
| 67 | 57 | |
|---|
| 68 | 58 | INIT_LIST_HEAD(&dev->slist); |
|---|
| 69 | 59 | INIT_LIST_HEAD(&dev->async_list); |
|---|