.. | .. |
---|
74 | 74 | int i; |
---|
75 | 75 | |
---|
76 | 76 | for (i = 0; i < ARRAY_SIZE(pci_sw_names); i++, counter++) |
---|
77 | | - seq_printf(m, "%26s:\t%lu\n", pci_sw_names[i], |
---|
| 77 | + seq_printf(m, "%26s:\t%llu\n", pci_sw_names[i], |
---|
78 | 78 | atomic64_read(counter)); |
---|
79 | 79 | } |
---|
80 | 80 | |
---|
.. | .. |
---|
172 | 172 | void zpci_debug_init_device(struct zpci_dev *zdev, const char *name) |
---|
173 | 173 | { |
---|
174 | 174 | zdev->debugfs_dev = debugfs_create_dir(name, debugfs_root); |
---|
175 | | - if (IS_ERR(zdev->debugfs_dev)) |
---|
176 | | - zdev->debugfs_dev = NULL; |
---|
177 | 175 | |
---|
178 | | - zdev->debugfs_perf = debugfs_create_file("statistics", |
---|
179 | | - S_IFREG | S_IRUGO | S_IWUSR, |
---|
180 | | - zdev->debugfs_dev, zdev, |
---|
181 | | - &debugfs_pci_perf_fops); |
---|
182 | | - if (IS_ERR(zdev->debugfs_perf)) |
---|
183 | | - zdev->debugfs_perf = NULL; |
---|
| 176 | + debugfs_create_file("statistics", S_IFREG | S_IRUGO | S_IWUSR, |
---|
| 177 | + zdev->debugfs_dev, zdev, &debugfs_pci_perf_fops); |
---|
184 | 178 | } |
---|
185 | 179 | |
---|
186 | 180 | void zpci_debug_exit_device(struct zpci_dev *zdev) |
---|
187 | 181 | { |
---|
188 | | - debugfs_remove(zdev->debugfs_perf); |
---|
189 | | - debugfs_remove(zdev->debugfs_dev); |
---|
| 182 | + debugfs_remove_recursive(zdev->debugfs_dev); |
---|
190 | 183 | } |
---|
191 | 184 | |
---|
192 | 185 | int __init zpci_debug_init(void) |
---|