|
|
@@ -107,7 +107,10 @@ static const struct file_operations dw_spi_regs_ops = {
|
|
|
|
|
|
static int dw_spi_debugfs_init(struct dw_spi *dws)
|
|
|
{
|
|
|
- dws->debugfs = debugfs_create_dir("dw_spi", NULL);
|
|
|
+ char name[128];
|
|
|
+
|
|
|
+ snprintf(name, 128, "dw_spi-%s", dev_name(&dws->master->dev));
|
|
|
+ dws->debugfs = debugfs_create_dir(name, NULL);
|
|
|
if (!dws->debugfs)
|
|
|
return -ENOMEM;
|
|
|
|