]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
goldfish bus: don't call request_mem_region
authorAlan Cox <alan@linux.intel.com>
Mon, 28 Apr 2014 19:50:56 +0000 (20:50 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 3 May 2014 23:48:09 +0000 (19:48 -0400)
This is a bug fix that has been lurking in the Google tree but not pushed
upstream.

From: Octavian Purdila <octavian.purdila@intel.com>

The memory region is already reserved in goldfish_init() during
platform init.

Signed-off-by: Octavian Purdila <octavian.purdila@intel.com>
Signed-off-by: Jun Tian <jun.j.tian@intel.com>
Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/platform/goldfish/pdev_bus.c

index 92cc4cfafde581eb7fe56fb6a11c3c0000465755..4eb2bb34790d250a7054cc841adb2019eb892249 100644 (file)
@@ -184,11 +184,6 @@ static int goldfish_pdev_bus_probe(struct platform_device *pdev)
        pdev_bus_addr = r->start;
        pdev_bus_len = resource_size(r);
 
-       if (request_mem_region(pdev_bus_addr, pdev_bus_len, "goldfish")) {
-               dev_err(&pdev->dev, "unable to reserve Goldfish MMIO.\n");
-               return -EBUSY;
-       }
-
        pdev_bus_base = ioremap(pdev_bus_addr, pdev_bus_len);
        if (pdev_bus_base == NULL) {
                ret = -ENOMEM;