diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/rionet.c | 4 | ||||
-rw-r--r-- | drivers/rapidio/rio-sysfs.c | 1 |
2 files changed, 3 insertions, 2 deletions
diff --git a/drivers/net/rionet.c b/drivers/net/rionet.c index 44150f2f7bfd..678e5777da81 100644 --- a/drivers/net/rionet.c +++ b/drivers/net/rionet.c | |||
@@ -382,7 +382,7 @@ static void rionet_remove(struct rio_dev *rdev) | |||
382 | struct rionet_peer *peer, *tmp; | 382 | struct rionet_peer *peer, *tmp; |
383 | 383 | ||
384 | free_pages((unsigned long)rionet_active, rdev->net->hport->sys_size ? | 384 | free_pages((unsigned long)rionet_active, rdev->net->hport->sys_size ? |
385 | __ilog2(sizeof(void *)) + 4 : 0); | 385 | __fls(sizeof(void *)) + 4 : 0); |
386 | unregister_netdev(ndev); | 386 | unregister_netdev(ndev); |
387 | free_netdev(ndev); | 387 | free_netdev(ndev); |
388 | 388 | ||
@@ -450,7 +450,7 @@ static int rionet_setup_netdev(struct rio_mport *mport) | |||
450 | } | 450 | } |
451 | 451 | ||
452 | rionet_active = (struct rio_dev **)__get_free_pages(GFP_KERNEL, | 452 | rionet_active = (struct rio_dev **)__get_free_pages(GFP_KERNEL, |
453 | mport->sys_size ? __ilog2(sizeof(void *)) + 4 : 0); | 453 | mport->sys_size ? __fls(sizeof(void *)) + 4 : 0); |
454 | if (!rionet_active) { | 454 | if (!rionet_active) { |
455 | rc = -ENOMEM; | 455 | rc = -ENOMEM; |
456 | goto out; | 456 | goto out; |
diff --git a/drivers/rapidio/rio-sysfs.c b/drivers/rapidio/rio-sysfs.c index 0d894320e227..4dbe360989be 100644 --- a/drivers/rapidio/rio-sysfs.c +++ b/drivers/rapidio/rio-sysfs.c | |||
@@ -14,6 +14,7 @@ | |||
14 | #include <linux/rio.h> | 14 | #include <linux/rio.h> |
15 | #include <linux/rio_drv.h> | 15 | #include <linux/rio_drv.h> |
16 | #include <linux/stat.h> | 16 | #include <linux/stat.h> |
17 | #include <linux/capability.h> | ||
17 | 18 | ||
18 | #include "rio.h" | 19 | #include "rio.h" |
19 | 20 | ||