From patchwork Thu Sep 2 21:28:51 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephen Hemminger X-Patchwork-Id: 151191 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id o82LSsVU001050 for ; Thu, 2 Sep 2010 21:28:54 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755277Ab0IBV2y (ORCPT ); Thu, 2 Sep 2010 17:28:54 -0400 Received: from mail.vyatta.com ([76.74.103.46]:42220 "EHLO mail.vyatta.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754305Ab0IBV2x (ORCPT ); Thu, 2 Sep 2010 17:28:53 -0400 Received: from localhost (localhost.localdomain [127.0.0.1]) by mail.vyatta.com (Postfix) with ESMTP id ED26F1829013; Thu, 2 Sep 2010 14:23:31 -0700 (PDT) X-Virus-Scanned: amavisd-new at tahiti.vyatta.com Received: from mail.vyatta.com ([127.0.0.1]) by localhost (mail.vyatta.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id j8ZSZl9KJk-A; Thu, 2 Sep 2010 14:23:31 -0700 (PDT) Received: from nehalam (pool-74-107-135-205.ptldor.fios.verizon.net [74.107.135.205]) by mail.vyatta.com (Postfix) with ESMTPSA id 4B467182900C; Thu, 2 Sep 2010 14:23:31 -0700 (PDT) Date: Thu, 2 Sep 2010 14:28:51 -0700 From: Stephen Hemminger To: jbarnes@virtuousgeek.org Cc: linux-pci@vger.kernel.org Subject: [PATCH] pci_driver make name const Message-ID: <20100902142851.6142ce92@nehalam> Organization: Vyatta X-Mailer: Claws Mail 3.7.5 (GTK+ 2.20.1; x86_64-pc-linux-gnu) Mime-Version: 1.0 Sender: linux-pci-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter1.kernel.org [140.211.167.41]); Thu, 02 Sep 2010 21:28:55 +0000 (UTC) --- a/include/linux/pci.h 2010-09-02 10:51:53.781352393 -0700 +++ b/include/linux/pci.h 2010-09-02 10:52:10.596969106 -0700 @@ -541,7 +541,7 @@ struct pci_error_handlers { struct module; struct pci_driver { struct list_head node; - char *name; + const char *name; const struct pci_device_id *id_table; /* must be non-NULL for probe to be called */ int (*probe) (struct pci_dev *dev, const struct pci_device_id *id); /* New device inserted */ void (*remove) (struct pci_dev *dev); /* Device removed (NULL if not a hot-plug capable driver) */