drivers: power: supply: Drop reference to dead platforms

Change-Id: Id81d81b06a02e4172018b0f42efc455805409e0a
This commit is contained in:
Sebastiano Barezzi
2023-03-05 16:55:06 +01:00
parent d14354fb62
commit be43d29ce7
2 changed files with 1 additions and 9 deletions

View File

@@ -5173,16 +5173,13 @@ static struct i2c_driver rx1619_driver = {
static int __init rx1619_init(void) static int __init rx1619_init(void)
{ {
int ret; int ret;
uint32_t hw_version = 0;
#ifdef CONFIG_RX1619_REMOVE #ifdef CONFIG_RX1619_REMOVE
return 0; return 0;
#endif #endif
hw_version = get_hw_version_platform();
printk("rx1619: hw version: %d\n", hw_version);
#ifndef CONFIG_RX_ON_URD #ifndef CONFIG_RX_ON_URD
printk("is_nvt_rx flag is:%d\n", is_nvt_rx); printk("is_nvt_rx flag is:%d\n", is_nvt_rx);
if (!is_nvt_rx && (hw_version != HARDWARE_PLATFORM_SKULD)) if (!is_nvt_rx)
return 0; return 0;
#endif #endif

View File

@@ -5242,12 +5242,7 @@ static struct i2c_driver idtp9220_driver = {
static int __init idt_init(void) static int __init idt_init(void)
{ {
int ret; int ret;
uint32_t hw_version = 0;
hw_version = get_hw_version_platform();
printk("idtp9415: hw version: %d\n", hw_version);
if (hw_version == HARDWARE_PLATFORM_SKULD)
return 0;
#ifndef CONFIG_RX1619_REMOVE #ifndef CONFIG_RX1619_REMOVE
printk("is_idt_rx flag is:%d\n", is_idt_rx); printk("is_idt_rx flag is:%d\n", is_idt_rx);
#endif #endif