1 From 77beb3055b14910fa3ef9af606476520e956bf93 Mon Sep 17 00:00:00 2001
2 From: Phil Elwell <phil@raspberrypi.com>
3 Date: Mon, 20 Apr 2020 22:18:52 +0100
4 Subject: [PATCH] driver: char: rpivid: Remove legacy name support
6 Signed-off-by: Phil Elwell <phil@raspberrypi.com>
8 drivers/char/broadcom/rpivid-mem.c | 22 ----------------------
9 1 file changed, 22 deletions(-)
11 --- a/drivers/char/broadcom/rpivid-mem.c
12 +++ b/drivers/char/broadcom/rpivid-mem.c
13 @@ -193,32 +193,11 @@ static int rpivid_mem_probe(struct platf
14 goto failed_device_create;
19 - char *oldname = kstrdup(priv->name, GFP_KERNEL);
26 - dev = device_create(priv->class, NULL, priv->devid + 1, NULL,
32 - goto failed_legacy_device_create;
36 dev_info(priv->dev, "%s initialised: Registers at 0x%08lx length 0x%08lx",
37 priv->name, priv->regs_phys, priv->mem_window_len);
41 -failed_legacy_device_create:
42 - device_destroy(priv->class, priv->devid);
44 class_destroy(priv->class);
46 @@ -238,7 +217,6 @@ static int rpivid_mem_remove(struct plat
47 struct device *dev = &pdev->dev;
48 struct rpivid_mem_priv *priv = platform_get_drvdata(pdev);
50 - device_destroy(priv->class, priv->devid + 1);
51 device_destroy(priv->class, priv->devid);
52 class_destroy(priv->class);
53 cdev_del(&priv->rpivid_mem_cdev);