kobject: convert icom to use kref, not kobject
The IBM icom serial driver is using a kobject only for reference counting, nothing else. So switch it to use a kref instead, which is all that is needed, and is much smaller. Cc: Anton Blanchard <anton@au.ibm.com> Cc: Paul Mackerras <paulus@au.ibm.com> Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org> Cc: Ryan S. Arnold <rsa@us.ibm.com> Cc: Kay Sievers <kay.sievers@vrfy.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
@ -270,7 +270,7 @@ struct icom_adapter {
|
||||
#define V2_ONE_PORT_RVX_ONE_PORT_IMBED_MDM 0x0251
|
||||
int numb_ports;
|
||||
struct list_head icom_adapter_entry;
|
||||
struct kobject kobj;
|
||||
struct kref kref;
|
||||
};
|
||||
|
||||
/* prototype */
|
||||
|
Reference in New Issue
Block a user