Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753208AbbKYQV6 (ORCPT ); Wed, 25 Nov 2015 11:21:58 -0500 Received: from mail-oi0-f50.google.com ([209.85.218.50]:36848 "EHLO mail-oi0-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753113AbbKYQV4 (ORCPT ); Wed, 25 Nov 2015 11:21:56 -0500 MIME-Version: 1.0 From: Andy Lutomirski Date: Wed, 25 Nov 2015 08:21:36 -0800 Message-ID: Subject: Releasing bus devices? To: Greg KH , "linux-kernel@vger.kernel.org" Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 583 Lines: 17 I'm writing a bus driver, and I'm confused. If I create a class and class devices, I can set a release method on the class. But if I create a bus, there's no bus_type.dev_release. Am I really supposed to manually set .release on each struct device that I enumerate? If so, why? --Andy -- Andy Lutomirski AMA Capital Management, LLC -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/