* [PATCH 0/3] Remove devm_request_and_ioremap()
@ 2014-06-19 18:48 Wolfram Sang
2014-06-19 18:48 ` [PATCH 1/3] DRM: Armada: Use devm_ioremap_resource Wolfram Sang
` (2 more replies)
0 siblings, 3 replies; 8+ messages in thread
From: Wolfram Sang @ 2014-06-19 18:48 UTC (permalink / raw)
To: linux-kernel; +Cc: Wolfram Sang, dri-devel, linux-doc
Pretty much a year ago, Tushar cleaned up a lot of deprecated uses of
devm_request_and_ioremap, yet some remains are still left. Remove the last two
users, and let the function rest in peace. I'd suggest that this series is
picked up as a whole to have that case finally closed. Greg? Are you interested
in picking it up?
Wolfram
Tushar Behera (2):
DRM: Armada: Use devm_ioremap_resource
lib: devres: Remove deprecated devm_request_and_ioremap
Wolfram Sang (1):
bus: brcmstb_gisb: Use devm_ioremap_resource
Documentation/driver-model/devres.txt | 1 -
drivers/bus/brcmstb_gisb.c | 6 +++---
drivers/gpu/drm/armada/armada_crtc.c | 8 +++-----
include/linux/device.h | 2 --
lib/devres.c | 28 ----------------------------
5 files changed, 6 insertions(+), 39 deletions(-)
--
2.0.0
^ permalink raw reply [flat|nested] 8+ messages in thread* [PATCH 1/3] DRM: Armada: Use devm_ioremap_resource 2014-06-19 18:48 [PATCH 0/3] Remove devm_request_and_ioremap() Wolfram Sang @ 2014-06-19 18:48 ` Wolfram Sang 2014-06-19 18:50 ` [PATCH 0/3] Remove devm_request_and_ioremap() Wolfram Sang 2014-06-20 2:36 ` Jingoo Han 2 siblings, 0 replies; 8+ messages in thread From: Wolfram Sang @ 2014-06-19 18:48 UTC (permalink / raw) To: linux-kernel Cc: Tushar Behera, Wolfram Sang, Russell King, David Airlie, dri-devel From: Tushar Behera <tushar.behera@linaro.org> While at it, propagate the error code. Signed-off-by: Tushar Behera <tushar.behera@linaro.org> Signed-off-by: Wolfram Sang <wsa@the-dreams.de> --- drivers/gpu/drm/armada/armada_crtc.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/drivers/gpu/drm/armada/armada_crtc.c b/drivers/gpu/drm/armada/armada_crtc.c index 81c34f949dfc..3aedf9e993e6 100644 --- a/drivers/gpu/drm/armada/armada_crtc.c +++ b/drivers/gpu/drm/armada/armada_crtc.c @@ -1039,11 +1039,9 @@ int armada_drm_crtc_create(struct drm_device *dev, unsigned num, if (ret) return ret; - base = devm_request_and_ioremap(dev->dev, res); - if (!base) { - DRM_ERROR("failed to ioremap register\n"); - return -ENOMEM; - } + base = devm_ioremap_resource(dev->dev, res); + if (IS_ERR(base)) + return PTR_ERR(base); dcrtc = kzalloc(sizeof(*dcrtc), GFP_KERNEL); if (!dcrtc) { -- 2.0.0 ^ permalink raw reply related [flat|nested] 8+ messages in thread
* Re: [PATCH 0/3] Remove devm_request_and_ioremap() 2014-06-19 18:48 [PATCH 0/3] Remove devm_request_and_ioremap() Wolfram Sang 2014-06-19 18:48 ` [PATCH 1/3] DRM: Armada: Use devm_ioremap_resource Wolfram Sang @ 2014-06-19 18:50 ` Wolfram Sang 2014-06-20 2:36 ` Jingoo Han 2 siblings, 0 replies; 8+ messages in thread From: Wolfram Sang @ 2014-06-19 18:50 UTC (permalink / raw) To: linux-kernel; +Cc: dri-devel, linux-doc, Greg KH [-- Attachment #1: Type: text/plain, Size: 449 bytes --] On Thu, Jun 19, 2014 at 08:48:58PM +0200, Wolfram Sang wrote: > Pretty much a year ago, Tushar cleaned up a lot of deprecated uses of > devm_request_and_ioremap, yet some remains are still left. Remove the last two > users, and let the function rest in peace. I'd suggest that this series is > picked up as a whole to have that case finally closed. Greg? Are you interested > in picking it up? Note to self: Add Greg to CC list when asking him... [-- Attachment #2: Digital signature --] [-- Type: application/pgp-signature, Size: 819 bytes --] ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH 0/3] Remove devm_request_and_ioremap() 2014-06-19 18:48 [PATCH 0/3] Remove devm_request_and_ioremap() Wolfram Sang 2014-06-19 18:48 ` [PATCH 1/3] DRM: Armada: Use devm_ioremap_resource Wolfram Sang 2014-06-19 18:50 ` [PATCH 0/3] Remove devm_request_and_ioremap() Wolfram Sang @ 2014-06-20 2:36 ` Jingoo Han 2014-06-20 2:59 ` 'Greg Kroah-Hartman' 2 siblings, 1 reply; 8+ messages in thread From: Jingoo Han @ 2014-06-20 2:36 UTC (permalink / raw) To: 'Wolfram Sang', linux-kernel Cc: linux-doc, dri-devel, 'Greg Kroah-Hartman', 'Jingoo Han' On Friday, June 20, 2014 3:49 AM, Wolfram Sang wrote: > > Pretty much a year ago, Tushar cleaned up a lot of deprecated uses of > devm_request_and_ioremap, yet some remains are still left. Remove the last two > users, and let the function rest in peace. I'd suggest that this series is > picked up as a whole to have that case finally closed. Greg? Are you interested > in picking it up? (+cc Greg Kroah-Hartman) I already sent the same patch as one single patch to Greg Kroah-Hartman. [1] Also, it was accepted by Greg Kroah-Hartman. [2] Thank you. [1] https://lkml.org/lkml/2014/6/11/26 [2] https://lkml.org/lkml/2014/6/11/649 Best regards, Jingoo Han > > Wolfram > > > Tushar Behera (2): > DRM: Armada: Use devm_ioremap_resource > lib: devres: Remove deprecated devm_request_and_ioremap > > Wolfram Sang (1): > bus: brcmstb_gisb: Use devm_ioremap_resource > > Documentation/driver-model/devres.txt | 1 - > drivers/bus/brcmstb_gisb.c | 6 +++--- > drivers/gpu/drm/armada/armada_crtc.c | 8 +++----- > include/linux/device.h | 2 -- > lib/devres.c | 28 ---------------------------- > 5 files changed, 6 insertions(+), 39 deletions(-) > > -- > 2.0.0 ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH 0/3] Remove devm_request_and_ioremap() 2014-06-20 2:36 ` Jingoo Han @ 2014-06-20 2:59 ` 'Greg Kroah-Hartman' 2014-06-20 6:47 ` Wolfram Sang 2014-06-20 8:45 ` Wolfram Sang 0 siblings, 2 replies; 8+ messages in thread From: 'Greg Kroah-Hartman' @ 2014-06-20 2:59 UTC (permalink / raw) To: Jingoo Han; +Cc: linux-doc, linux-kernel, dri-devel, 'Wolfram Sang' On Fri, Jun 20, 2014 at 11:36:03AM +0900, Jingoo Han wrote: > On Friday, June 20, 2014 3:49 AM, Wolfram Sang wrote: > > > > Pretty much a year ago, Tushar cleaned up a lot of deprecated uses of > > devm_request_and_ioremap, yet some remains are still left. Remove the last two > > users, and let the function rest in peace. I'd suggest that this series is > > picked up as a whole to have that case finally closed. Greg? Are you interested > > in picking it up? > > (+cc Greg Kroah-Hartman) > > I already sent the same patch as one single patch to Greg Kroah-Hartman. [1] > Also, it was accepted by Greg Kroah-Hartman. [2] Thank you. > > [1] https://lkml.org/lkml/2014/6/11/26 > [2] https://lkml.org/lkml/2014/6/11/649 Yeah, I'll go apply that right now while I'm remembering it :) thanks, greg k-h ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH 0/3] Remove devm_request_and_ioremap() 2014-06-20 2:59 ` 'Greg Kroah-Hartman' @ 2014-06-20 6:47 ` Wolfram Sang 2014-06-20 8:45 ` Wolfram Sang 1 sibling, 0 replies; 8+ messages in thread From: Wolfram Sang @ 2014-06-20 6:47 UTC (permalink / raw) To: 'Greg Kroah-Hartman' Cc: Jingoo Han, linux-kernel, linux-doc, dri-devel [-- Attachment #1: Type: text/plain, Size: 345 bytes --] > > I already sent the same patch as one single patch to Greg Kroah-Hartman. [1] > > Also, it was accepted by Greg Kroah-Hartman. [2] Thank you. > > > > [1] https://lkml.org/lkml/2014/6/11/26 > > [2] https://lkml.org/lkml/2014/6/11/649 > > Yeah, I'll go apply that right now while I'm remembering it :) Yay, great! Thank you both! [-- Attachment #2: Digital signature --] [-- Type: application/pgp-signature, Size: 819 bytes --] ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH 0/3] Remove devm_request_and_ioremap() 2014-06-20 2:59 ` 'Greg Kroah-Hartman' 2014-06-20 6:47 ` Wolfram Sang @ 2014-06-20 8:45 ` Wolfram Sang 2014-06-20 8:51 ` Tushar Behera 1 sibling, 1 reply; 8+ messages in thread From: Wolfram Sang @ 2014-06-20 8:45 UTC (permalink / raw) To: 'Greg Kroah-Hartman' Cc: Jingoo Han, linux-kernel, linux-doc, dri-devel [-- Attachment #1: Type: text/plain, Size: 987 bytes --] On Thu, Jun 19, 2014 at 07:59:57PM -0700, 'Greg Kroah-Hartman' wrote: > On Fri, Jun 20, 2014 at 11:36:03AM +0900, Jingoo Han wrote: > > On Friday, June 20, 2014 3:49 AM, Wolfram Sang wrote: > > > > > > Pretty much a year ago, Tushar cleaned up a lot of deprecated uses of > > > devm_request_and_ioremap, yet some remains are still left. Remove the last two > > > users, and let the function rest in peace. I'd suggest that this series is > > > picked up as a whole to have that case finally closed. Greg? Are you interested > > > in picking it up? > > > > (+cc Greg Kroah-Hartman) > > > > I already sent the same patch as one single patch to Greg Kroah-Hartman. [1] > > Also, it was accepted by Greg Kroah-Hartman. [2] Thank you. > > > > [1] https://lkml.org/lkml/2014/6/11/26 > > [2] https://lkml.org/lkml/2014/6/11/649 > > Yeah, I'll go apply that right now while I'm remembering it :) For the patch above: Reviewed-by: Wolfram Sang <wsa@the-dreams.de> [-- Attachment #2: Digital signature --] [-- Type: application/pgp-signature, Size: 819 bytes --] ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH 0/3] Remove devm_request_and_ioremap() 2014-06-20 8:45 ` Wolfram Sang @ 2014-06-20 8:51 ` Tushar Behera 0 siblings, 0 replies; 8+ messages in thread From: Tushar Behera @ 2014-06-20 8:51 UTC (permalink / raw) To: Wolfram Sang, 'Greg Kroah-Hartman' Cc: linux-kernel, dri-devel, linux-doc -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 06/20/2014 02:15 PM, Wolfram Sang wrote: > On Thu, Jun 19, 2014 at 07:59:57PM -0700, 'Greg Kroah-Hartman' > wrote: >> On Fri, Jun 20, 2014 at 11:36:03AM +0900, Jingoo Han wrote: >>> On Friday, June 20, 2014 3:49 AM, Wolfram Sang wrote: >>>> >>>> Pretty much a year ago, Tushar cleaned up a lot of deprecated >>>> uses of devm_request_and_ioremap, yet some remains are still >>>> left. Remove the last two users, and let the function rest in >>>> peace. I'd suggest that this series is picked up as a whole >>>> to have that case finally closed. Greg? Are you interested in >>>> picking it up? >>> >>> (+cc Greg Kroah-Hartman) >>> >>> I already sent the same patch as one single patch to Greg >>> Kroah-Hartman. [1] Also, it was accepted by Greg Kroah-Hartman. >>> [2] Thank you. >>> >>> [1] https://lkml.org/lkml/2014/6/11/26 [2] >>> https://lkml.org/lkml/2014/6/11/649 >> >> Yeah, I'll go apply that right now while I'm remembering it :) > > For the patch above: > > Reviewed-by: Wolfram Sang <wsa@the-dreams.de> > If it is still not late, Acked-by: Tushar Behera <trblinux@gmail.com> - -- Tushar Behera -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBAgAGBQJTo/YpAAoJELqclMPPkq4NOsIIAIkN+lOgWTIo3IBw7oQ9yO76 Hjn6fR2kjWOdrXrTdW3KQRzElw8hMKdPF5++GkgAkreoLSxRBLnyHdGc0jPdmxXw gIu4O0WNQYRKYN+fkHPkl/5z10SNmZrnwcq37FK8EMCqpph7JywYOu5WyNVjMKOh gTJ9zME+iCAzE+KlzBr7pRLySkFvgtITqBRT/lsRmGGpjH+kphSmYuY2kvz2VVLI DE6Zy8kOyZEEDwDsm62qhoZNtzKcGoZgSqNFKU8fM9duonRhAwUQKImUnKB1H1CD FQcmZI/4WA/6OLypUSBj/AIciK1MW/Gu6IpILjNVwQA/q3CKEaUkiHf+2HNVohU= =FBDs -----END PGP SIGNATURE----- ^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2014-06-20 8:51 UTC | newest] Thread overview: 8+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2014-06-19 18:48 [PATCH 0/3] Remove devm_request_and_ioremap() Wolfram Sang 2014-06-19 18:48 ` [PATCH 1/3] DRM: Armada: Use devm_ioremap_resource Wolfram Sang 2014-06-19 18:50 ` [PATCH 0/3] Remove devm_request_and_ioremap() Wolfram Sang 2014-06-20 2:36 ` Jingoo Han 2014-06-20 2:59 ` 'Greg Kroah-Hartman' 2014-06-20 6:47 ` Wolfram Sang 2014-06-20 8:45 ` Wolfram Sang 2014-06-20 8:51 ` Tushar Behera
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox