Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932499AbcDTNSC (ORCPT ); Wed, 20 Apr 2016 09:18:02 -0400 Received: from mail1.bemta5.messagelabs.com ([195.245.231.147]:57026 "EHLO mail1.bemta5.messagelabs.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932166AbcDTNR7 (ORCPT ); Wed, 20 Apr 2016 09:17:59 -0400 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrNIsWRWlGSWpSXmKPExsUS8J9tom5Jo3i 4Qd8OZYvHXTNYLS7vmsNmsfLbT2YHZo+ds+6ye2w+Xe3xeZNcAHMUa2ZeUn5FAmvGzStrGQsu M1esn/+HvYGxlbmLkYtDSKCBUeL/4x8sXYwcHBICfhKLT1RCxOczSnT2tjN1MXJysAioSjRs2 wNmswnoSJxrb2YFsUUEJCX+XewHizMLWEjM7JrADGILC7hIXD5+kx3E5gWK/3m7hAnCFpQ4Of MJC0S9jsSC3Z/YQPYyC0hLLP/HAWKKCqhIvDpYD1IhJKAk8flFH9hECQF5ib19i9kgroyT+HL HFMK0lpi4OXECo+AsJONnIRk/C2H8AkbmVYwaxalFZalFuoaGeklFmekZJbmJmTm6hgamermp xcWJ6ak5iUnFesn5uZsYgQHNAAQ7GFe2Ox9ilORgUhLlVRUQDxfiS8pPqcxILM6ILyrNSS0+x CjDwaEkwfuwASgnWJSanlqRlpkDjC2YtAQHj5IIbxxImre4IDG3ODMdInWKUZdjwY/ba5mEWP Ly81KlxHkPgBQJgBRllObBjYDF+SVGWSlhXkago4R4ClKLcjNLUOVfMYpzMCoJ884BmcKTmVc Ct+kV0BFMQEfw3xUFOaIkESEl1cC4KYvXP4FvMf+dZ9vO/GFj6tX+eyH2nfHL/QIn82X0bTam /OC6p/+6yujYZ1kX5fsNF/SCH9VI6x6Ue/BmUdCDlRM/Ou7MnrZX2DZl99Gd01eeqtj2LFbdT C/zfbja86UpB/bI3nocozXxUcbXrKhP/utYqtnyr2Q/sLLsPvC1uW4SZ+m2pJpJSizFGYmGWs xFxYkAqj2fse4CAAA= X-Env-Sender: Andreas.Werner@men.de X-Msg-Ref: server-12.tower-179.messagelabs.com!1461158260!31181272!1 X-Originating-IP: [80.255.6.145] X-StarScan-Received: X-StarScan-Version: 8.28; banners=-,-,- X-VirusChecked: Checked X-PGP-Universal: processed; by keys.men.de on Wed, 20 Apr 2016 15:17:40 +0200 Date: Wed, 20 Apr 2016 15:17:36 +0200 From: Andreas Werner To: CC: , Subject: [PATCH 0/2] make use of devm function in the mcb-pci driver Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline User-Agent: Mutt/1.5.24 (2015-08-30) X-Originating-IP: [192.1.1.170] X-ClientProxiedBy: MEN-EX01.intra.men.de (192.168.1.1) To MEN-EX01.intra.men.de (192.168.1.1) X-EXCLAIMER-MD-CONFIG: e4841e51-7998-49c0-ba41-8b8a0e2d8962 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 466 Lines: 15 The first patch replace the ioremap an request_mem_region function with the corresponding devm function to have a more cleaner code and a better error handling. The sencoder patch just delete a unused variable. Andreas Werner (2): mcb: Replace ioremap and request_region with the devm version mcb: Delete num_cells variable which is not required drivers/mcb/mcb-pci.c | 23 ++++++++--------------- 1 file changed, 8 insertions(+), 15 deletions(-) -- 2.6.2