hc
2024-10-12 a5969cabbb4660eab42b6ef0412cbbd1200cf14d
kernel/arch/s390/pci/pci_debug.c
....@@ -74,7 +74,7 @@
7474 int i;
7575
7676 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],
7878 atomic64_read(counter));
7979 }
8080
....@@ -172,21 +172,14 @@
172172 void zpci_debug_init_device(struct zpci_dev *zdev, const char *name)
173173 {
174174 zdev->debugfs_dev = debugfs_create_dir(name, debugfs_root);
175
- if (IS_ERR(zdev->debugfs_dev))
176
- zdev->debugfs_dev = NULL;
177175
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);
184178 }
185179
186180 void zpci_debug_exit_device(struct zpci_dev *zdev)
187181 {
188
- debugfs_remove(zdev->debugfs_perf);
189
- debugfs_remove(zdev->debugfs_dev);
182
+ debugfs_remove_recursive(zdev->debugfs_dev);
190183 }
191184
192185 int __init zpci_debug_init(void)