From patchwork Fri Apr 5 14:08:45 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Hajnoczi X-Patchwork-Id: 234147 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 27ED82C00A0 for ; Sat, 6 Apr 2013 01:09:57 +1100 (EST) Received: from localhost ([::1]:54817 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UO7L0-0007gc-Ux for incoming@patchwork.ozlabs.org; Fri, 05 Apr 2013 10:09:54 -0400 Received: from eggs.gnu.org ([208.118.235.92]:33681) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UO7KL-0007UZ-5Y for qemu-devel@nongnu.org; Fri, 05 Apr 2013 10:09:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UO7K8-0008Hz-3z for qemu-devel@nongnu.org; Fri, 05 Apr 2013 10:09:13 -0400 Received: from mx1.redhat.com ([209.132.183.28]:48803) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UO7K7-0008Hp-T4 for qemu-devel@nongnu.org; Fri, 05 Apr 2013 10:09:00 -0400 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id r35E8xcX014300 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 5 Apr 2013 10:08:59 -0400 Received: from localhost (ovpn-112-21.ams2.redhat.com [10.36.112.21]) by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id r35E8wFa006781; Fri, 5 Apr 2013 10:08:58 -0400 From: Stefan Hajnoczi To: Date: Fri, 5 Apr 2013 16:08:45 +0200 Message-Id: <1365170926-6361-5-git-send-email-stefanha@redhat.com> In-Reply-To: <1365170926-6361-1-git-send-email-stefanha@redhat.com> References: <1365170926-6361-1-git-send-email-stefanha@redhat.com> X-Scanned-By: MIMEDefang 2.68 on 10.5.11.24 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 209.132.183.28 Cc: Anthony Liguori , Peter Crosthwaite , Stefan Hajnoczi Subject: [Qemu-devel] [PATCH 4/5] petalogix_ml605_mmu: Cleanup ssi_create_slave() X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org From: Peter Crosthwaite With the recent m25p80 cleanup there is no need to use ssi_create_slave_no_init() anymore. Just use ssi_create_slave(). Signed-off-by: Peter Crosthwaite Signed-off-by: Stefan Hajnoczi --- hw/microblaze/petalogix_ml605_mmu.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/hw/microblaze/petalogix_ml605_mmu.c b/hw/microblaze/petalogix_ml605_mmu.c index cfc0220..07dc808 100644 --- a/hw/microblaze/petalogix_ml605_mmu.c +++ b/hw/microblaze/petalogix_ml605_mmu.c @@ -158,8 +158,7 @@ petalogix_ml605_init(QEMUMachineInitArgs *args) for (i = 0; i < NUM_SPI_FLASHES; i++) { qemu_irq cs_line; - dev = ssi_create_slave_no_init(spi, "n25q128"); - qdev_init_nofail(dev); + dev = ssi_create_slave(spi, "n25q128"); cs_line = qdev_get_gpio_in(dev, 0); sysbus_connect_irq(busdev, i+1, cs_line); }