Remove unnecessary instances of DECLARE_GLOBAL_DATA_PTR
We have a large number of places where while we historically referenced gd in the code we no longer do, as well as cases where the code added that line "just in case" during development and never dropped it. Signed-off-by: Tom Rini <trini@konsulko.com>
This commit is contained in:
@@ -9,8 +9,6 @@
|
||||
#include <mailbox.h>
|
||||
#include <mailbox-uclass.h>
|
||||
|
||||
DECLARE_GLOBAL_DATA_PTR;
|
||||
|
||||
static inline struct mbox_ops *mbox_dev_ops(struct udevice *dev)
|
||||
{
|
||||
return (struct mbox_ops *)dev->driver->ops;
|
||||
|
||||
@@ -36,8 +36,6 @@ struct tegra_hsp {
|
||||
uint32_t db_base;
|
||||
};
|
||||
|
||||
DECLARE_GLOBAL_DATA_PTR;
|
||||
|
||||
static uint32_t *tegra_hsp_reg(struct tegra_hsp *thsp, uint32_t db_id,
|
||||
uint32_t reg)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user