mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-16 01:54:00 +00:00
net: phy: qt2025: Fix warning: unused import DeviceId
Fix the following warning when the driver is compiled as built-in: warning: unused import: `DeviceId` --> drivers/net/phy/qt2025.rs:18:5 | 18 | DeviceId, Driver, | ^^^^^^^^ | = note: `#[warn(unused_imports)]` on by default device_table in module_phy_driver macro is defined only when the driver is built as a module. Use phy::DeviceId in the macro instead of importing `DeviceId` since `phy` is always used. Fixes: fd3eaad826da ("net: phy: add Applied Micro QT2025 PHY driver") Reported-by: kernel test robot <lkp@intel.com> Closes: https://lore.kernel.org/oe-kbuild-all/202409190717.i135rfVo-lkp@intel.com/ Reviewed-by: Alice Ryhl <aliceryhl@google.com> Reviewed-by: Trevor Gross <tmgross@umich.edu> Signed-off-by: FUJITA Tomonori <fujita.tomonori@gmail.com> Reviewed-by: Fiona Behrens <me@kloenk.dev> Acked-by: Miguel Ojeda <ojeda@kernel.org> Link: https://patch.msgid.link/20240926121404.242092-1-fujita.tomonori@gmail.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
parent
a1e40ac5b5
commit
fa7dfeae04
@ -15,7 +15,7 @@ use kernel::firmware::Firmware;
|
||||
use kernel::net::phy::{
|
||||
self,
|
||||
reg::{Mmd, C45},
|
||||
DeviceId, Driver,
|
||||
Driver,
|
||||
};
|
||||
use kernel::prelude::*;
|
||||
use kernel::sizes::{SZ_16K, SZ_8K};
|
||||
@ -23,7 +23,7 @@ use kernel::sizes::{SZ_16K, SZ_8K};
|
||||
kernel::module_phy_driver! {
|
||||
drivers: [PhyQT2025],
|
||||
device_table: [
|
||||
DeviceId::new_with_driver::<PhyQT2025>(),
|
||||
phy::DeviceId::new_with_driver::<PhyQT2025>(),
|
||||
],
|
||||
name: "qt2025_phy",
|
||||
author: "FUJITA Tomonori <fujita.tomonori@gmail.com>",
|
||||
|
Loading…
x
Reference in New Issue
Block a user