]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - kernel/resource.c
regulator: Regulator driver for the Qualcomm RPM
[karo-tx-linux.git] / kernel / resource.c
index 19f2357dfda3fe88f7e0ddc6b29778176138a619..90552aab5f2dd076c147c73cc6f9ff59aabb7af6 100644 (file)
@@ -1034,8 +1034,6 @@ resource_size_t resource_alignment(struct resource *res)
  *
  * request_region creates a new busy region.
  *
- * check_region returns non-zero if the area is already busy.
- *
  * release_region releases a matching busy region.
  */
 
@@ -1097,36 +1095,6 @@ struct resource * __request_region(struct resource *parent,
 }
 EXPORT_SYMBOL(__request_region);
 
-/**
- * __check_region - check if a resource region is busy or free
- * @parent: parent resource descriptor
- * @start: resource start address
- * @n: resource region size
- *
- * Returns 0 if the region is free at the moment it is checked,
- * returns %-EBUSY if the region is busy.
- *
- * NOTE:
- * This function is deprecated because its use is racy.
- * Even if it returns 0, a subsequent call to request_region()
- * may fail because another driver etc. just allocated the region.
- * Do NOT use it.  It will be removed from the kernel.
- */
-int __check_region(struct resource *parent, resource_size_t start,
-                       resource_size_t n)
-{
-       struct resource * res;
-
-       res = __request_region(parent, start, n, "check-region", 0);
-       if (!res)
-               return -EBUSY;
-
-       release_resource(res);
-       free_resource(res);
-       return 0;
-}
-EXPORT_SYMBOL(__check_region);
-
 /**
  * __release_region - release a previously reserved resource region
  * @parent: parent resource descriptor