Skip to content

Commit 19856a0

Browse files
glneoandersson
authored andcommitted
hwspinlock: omap: Remove unneeded check for OF node
We do not use the OF node anymore, nor does it matter how we got to probe, so remove the check for of_node. Signed-off-by: Andrew Davis <afd@ti.com> Link: https://lore.kernel.org/r/20240208165114.63148-1-afd@ti.com Signed-off-by: Bjorn Andersson <andersson@kernel.org>
1 parent 6613476 commit 19856a0

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

drivers/hwspinlock/omap_hwspinlock.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,17 +74,13 @@ static const struct hwspinlock_ops omap_hwspinlock_ops = {
7474

7575
static int omap_hwspinlock_probe(struct platform_device *pdev)
7676
{
77-
struct device_node *node = pdev->dev.of_node;
7877
struct hwspinlock_device *bank;
7978
struct hwspinlock *hwlock;
8079
void __iomem *io_base;
8180
int num_locks, i, ret;
8281
/* Only a single hwspinlock block device is supported */
8382
int base_id = 0;
8483

85-
if (!node)
86-
return -ENODEV;
87-
8884
io_base = devm_platform_ioremap_resource(pdev, 0);
8985
if (IS_ERR(io_base))
9086
return PTR_ERR(io_base);

0 commit comments

Comments
 (0)