提交 d51ee07a 编写于 作者: B Bartosz Golaszewski

gpio: mockup: don't create the debugfs link named after the label

User-space tests no longer use it and we're breaking the interface
anyway.
Signed-off-by: NBartosz Golaszewski <bgolaszewski@baylibre.com>
上级 cbf1e092
......@@ -234,7 +234,7 @@ static void gpio_mockup_debugfs_setup(struct device *dev,
struct gpio_mockup_chip *chip)
{
struct gpio_mockup_dbgfs_private *priv;
struct dentry *evfile, *link;
struct dentry *evfile;
struct gpio_chip *gc;
const char *devname;
char *name;
......@@ -247,10 +247,6 @@ static void gpio_mockup_debugfs_setup(struct device *dev,
if (IS_ERR_OR_NULL(chip->dbg_dir))
goto err;
link = debugfs_create_symlink(gc->label, gpio_mockup_dbg_dir, devname);
if (IS_ERR_OR_NULL(link))
goto err;
for (i = 0; i < gc->ngpio; i++) {
name = devm_kasprintf(dev, GFP_KERNEL, "%d", i);
if (!name)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册