18c2ecf20Sopenharmony_ci// SPDX-License-Identifier: GPL-2.0 28c2ecf20Sopenharmony_ci/* 38c2ecf20Sopenharmony_ci * firmware.c - firmware subsystem hoohaw. 48c2ecf20Sopenharmony_ci * 58c2ecf20Sopenharmony_ci * Copyright (c) 2002-3 Patrick Mochel 68c2ecf20Sopenharmony_ci * Copyright (c) 2002-3 Open Source Development Labs 78c2ecf20Sopenharmony_ci * Copyright (c) 2007 Greg Kroah-Hartman <gregkh@suse.de> 88c2ecf20Sopenharmony_ci * Copyright (c) 2007 Novell Inc. 98c2ecf20Sopenharmony_ci */ 108c2ecf20Sopenharmony_ci#include <linux/kobject.h> 118c2ecf20Sopenharmony_ci#include <linux/module.h> 128c2ecf20Sopenharmony_ci#include <linux/init.h> 138c2ecf20Sopenharmony_ci#include <linux/device.h> 148c2ecf20Sopenharmony_ci 158c2ecf20Sopenharmony_ci#include "base.h" 168c2ecf20Sopenharmony_ci 178c2ecf20Sopenharmony_cistruct kobject *firmware_kobj; 188c2ecf20Sopenharmony_ciEXPORT_SYMBOL_GPL(firmware_kobj); 198c2ecf20Sopenharmony_ci 208c2ecf20Sopenharmony_ciint __init firmware_init(void) 218c2ecf20Sopenharmony_ci{ 228c2ecf20Sopenharmony_ci firmware_kobj = kobject_create_and_add("firmware", NULL); 238c2ecf20Sopenharmony_ci if (!firmware_kobj) 248c2ecf20Sopenharmony_ci return -ENOMEM; 258c2ecf20Sopenharmony_ci return 0; 268c2ecf20Sopenharmony_ci} 27