mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-12-29 12:25:35 -05:00
Merge tag 'hsi-for-6.12' of git://git.kernel.org/pub/scm/linux/kernel/git/sre/linux-hsi
Pull HSI update from Sebastian Reichel: - omap-ssi: remove unnecessary debugfs_create_dir() error check * tag 'hsi-for-6.12' of git://git.kernel.org/pub/scm/linux/kernel/git/sre/linux-hsi: HSI: omap-ssi: Remove unnecessary debugfs_create_dir() error check
This commit is contained in:
@@ -116,22 +116,13 @@ static int ssi_debug_add_ctrl(struct hsi_controller *ssi)
|
||||
|
||||
/* SSI controller */
|
||||
omap_ssi->dir = debugfs_create_dir(dev_name(&ssi->device), NULL);
|
||||
if (!omap_ssi->dir)
|
||||
return -ENOMEM;
|
||||
debugfs_create_file("regs", S_IRUGO, omap_ssi->dir, ssi, &ssi_regs_fops);
|
||||
|
||||
debugfs_create_file("regs", S_IRUGO, omap_ssi->dir, ssi,
|
||||
&ssi_regs_fops);
|
||||
/* SSI GDD (DMA) */
|
||||
dir = debugfs_create_dir("gdd", omap_ssi->dir);
|
||||
if (!dir)
|
||||
goto rback;
|
||||
debugfs_create_file("regs", S_IRUGO, dir, ssi, &ssi_gdd_regs_fops);
|
||||
|
||||
return 0;
|
||||
rback:
|
||||
debugfs_remove_recursive(omap_ssi->dir);
|
||||
|
||||
return -ENOMEM;
|
||||
}
|
||||
|
||||
static void ssi_debug_remove_ctrl(struct hsi_controller *ssi)
|
||||
|
||||
Reference in New Issue
Block a user