diff options
Diffstat (limited to 'drivers/uwb')
-rw-r--r-- | drivers/uwb/uwbd.c | 2 | ||||
-rw-r--r-- | drivers/uwb/whc-rc.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/drivers/uwb/uwbd.c b/drivers/uwb/uwbd.c index 001c8b4020a8..bdcb13cc1d54 100644 --- a/drivers/uwb/uwbd.c +++ b/drivers/uwb/uwbd.c | |||
@@ -256,7 +256,7 @@ static void uwbd_event_handle(struct uwb_event *evt) | |||
256 | * UWB Daemon | 256 | * UWB Daemon |
257 | * | 257 | * |
258 | * Listens to all UWB notifications and takes care to track the state | 258 | * Listens to all UWB notifications and takes care to track the state |
259 | * of the UWB neighboorhood for the kernel. When we do a run, we | 259 | * of the UWB neighbourhood for the kernel. When we do a run, we |
260 | * spinlock, move the list to a private copy and release the | 260 | * spinlock, move the list to a private copy and release the |
261 | * lock. Hold it as little as possible. Not a conflict: it is | 261 | * lock. Hold it as little as possible. Not a conflict: it is |
262 | * guaranteed we own the events in the private list. | 262 | * guaranteed we own the events in the private list. |
diff --git a/drivers/uwb/whc-rc.c b/drivers/uwb/whc-rc.c index 70a004aa19db..3ae3c702500d 100644 --- a/drivers/uwb/whc-rc.c +++ b/drivers/uwb/whc-rc.c | |||
@@ -222,7 +222,7 @@ int whcrc_setup_rc_umc(struct whcrc *whcrc) | |||
222 | struct umc_dev *umc_dev = whcrc->umc_dev; | 222 | struct umc_dev *umc_dev = whcrc->umc_dev; |
223 | 223 | ||
224 | whcrc->area = umc_dev->resource.start; | 224 | whcrc->area = umc_dev->resource.start; |
225 | whcrc->rc_len = umc_dev->resource.end - umc_dev->resource.start + 1; | 225 | whcrc->rc_len = resource_size(&umc_dev->resource); |
226 | result = -EBUSY; | 226 | result = -EBUSY; |
227 | if (request_mem_region(whcrc->area, whcrc->rc_len, KBUILD_MODNAME) == NULL) { | 227 | if (request_mem_region(whcrc->area, whcrc->rc_len, KBUILD_MODNAME) == NULL) { |
228 | dev_err(dev, "can't request URC region (%zu bytes @ 0x%lx): %d\n", | 228 | dev_err(dev, "can't request URC region (%zu bytes @ 0x%lx): %d\n", |