@@ -1586,7 +1586,7 @@ static void s3cmci_debugfs_attach(struct s3cmci_host *host)
struct device *dev = &host->pdev->dev;
host->debug_root = debugfs_create_dir(dev_name(dev), NULL);
- if (IS_ERR(host->debug_root)) {
+ if (!host->debug_root) {
dev_err(dev, "failed to create debugfs root\n");
return;
}
@@ -1595,14 +1595,14 @@ static void s3cmci_debugfs_attach(struct s3cmci_host *host)
host->debug_root, host,
&s3cmci_fops_state);
- if (IS_ERR(host->debug_state))
+ if (!host->debug_state)
dev_err(dev, "failed to create debug state file\n");
host->debug_regs = debugfs_create_file("regs", 0444,
host->debug_root, host,
&s3cmci_fops_regs);
- if (IS_ERR(host->debug_regs))
+ if (!host->debug_regs)
dev_err(dev, "failed to create debug regs file\n");
}