Skip to content

Commit 7e90937

Browse files
robherringvinodkoul
authored andcommitted
phy: realtek: Replace of_device.h with explicit includes
The DT of_device.h and of_platform.h date back to the separate of_platform_bus_type before it as merged into the regular platform bus. As part of that merge prepping Arm DT support 13 years ago, they "temporarily" include each other and pull in various other headers. In preparation to fix this, adjust the includes for what is actually needed. of_device.h isn't needed, but platform_device.h was implicitly included by it. Signed-off-by: Rob Herring <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Vinod Koul <[email protected]>
1 parent 1a53611 commit 7e90937

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

drivers/phy/realtek/phy-rtk-usb2.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88

99
#include <linux/module.h>
1010
#include <linux/of.h>
11-
#include <linux/of_device.h>
1211
#include <linux/of_address.h>
12+
#include <linux/platform_device.h>
1313
#include <linux/uaccess.h>
1414
#include <linux/debugfs.h>
1515
#include <linux/nvmem-consumer.h>

drivers/phy/realtek/phy-rtk-usb3.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88

99
#include <linux/module.h>
1010
#include <linux/of.h>
11-
#include <linux/of_device.h>
1211
#include <linux/of_address.h>
12+
#include <linux/platform_device.h>
1313
#include <linux/uaccess.h>
1414
#include <linux/debugfs.h>
1515
#include <linux/nvmem-consumer.h>

0 commit comments

Comments
 (0)