Skip to content

Commit

Permalink
Automatic merge of 'next' into merge (2024-03-12 09:59)
Browse files Browse the repository at this point in the history
  • Loading branch information
mpe committed Mar 11, 2024
2 parents b622a71 + 9db2235 commit d5bdfb0
Show file tree
Hide file tree
Showing 12 changed files with 18 additions and 32 deletions.
4 changes: 2 additions & 2 deletions arch/powerpc/include/asm/book3s/64/pgtable-64k.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ static inline int hugepd_ok(hugepd_t hpd)
/*
* This should never get called
*/
static inline int get_hugepd_cache_index(int index)
static __always_inline int get_hugepd_cache_index(int index)
{
BUG();
BUILD_BUG();
}

#endif /* CONFIG_HUGETLB_PAGE */
Expand Down
2 changes: 1 addition & 1 deletion arch/powerpc/include/asm/macio.h
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ static inline struct pci_dev *macio_get_pci_dev(struct macio_dev *mdev)
struct macio_driver
{
int (*probe)(struct macio_dev* dev, const struct of_device_id *match);
int (*remove)(struct macio_dev* dev);
void (*remove)(struct macio_dev *dev);

int (*suspend)(struct macio_dev* dev, pm_message_t state);
int (*resume)(struct macio_dev* dev);
Expand Down
4 changes: 4 additions & 0 deletions arch/powerpc/include/asm/switch_to.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@ static inline void disable_kernel_fp(void)
#else
static inline void save_fpu(struct task_struct *t) { }
static inline void flush_fp_to_thread(struct task_struct *t) { }
static inline void enable_kernel_fp(void)
{
BUILD_BUG();
}
#endif

#ifdef CONFIG_ALTIVEC
Expand Down
3 changes: 2 additions & 1 deletion arch/powerpc/platforms/83xx/suspend.c
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,8 @@ static int mpc83xx_suspend_enter(suspend_state_t state)
out_be32(&pmc_regs->config1,
in_be32(&pmc_regs->config1) | PMCCR1_POWER_OFF);

enable_kernel_fp();
if (IS_ENABLED(CONFIG_PPC_FPU))
enable_kernel_fp();

mpc83xx_enter_deep_sleep(immrbase);

Expand Down
4 changes: 1 addition & 3 deletions drivers/ata/pata_macio.c
Original file line number Diff line number Diff line change
Expand Up @@ -1188,7 +1188,7 @@ static int pata_macio_attach(struct macio_dev *mdev,
return rc;
}

static int pata_macio_detach(struct macio_dev *mdev)
static void pata_macio_detach(struct macio_dev *mdev)
{
struct ata_host *host = macio_get_drvdata(mdev);
struct pata_macio_priv *priv = host->private_data;
Expand All @@ -1203,8 +1203,6 @@ static int pata_macio_detach(struct macio_dev *mdev)
ata_host_detach(host);

unlock_media_bay(priv->mdev->media_bay);

return 0;
}

#ifdef CONFIG_PM_SLEEP
Expand Down
4 changes: 1 addition & 3 deletions drivers/macintosh/rack-meter.c
Original file line number Diff line number Diff line change
Expand Up @@ -523,7 +523,7 @@ static int rackmeter_probe(struct macio_dev* mdev,
return rc;
}

static int rackmeter_remove(struct macio_dev* mdev)
static void rackmeter_remove(struct macio_dev *mdev)
{
struct rackmeter *rm = dev_get_drvdata(&mdev->ofdev.dev);

Expand Down Expand Up @@ -558,8 +558,6 @@ static int rackmeter_remove(struct macio_dev* mdev)

/* Get rid of me */
kfree(rm);

return 0;
}

static int rackmeter_shutdown(struct macio_dev* mdev)
Expand Down
4 changes: 1 addition & 3 deletions drivers/net/ethernet/apple/bmac.c
Original file line number Diff line number Diff line change
Expand Up @@ -1591,7 +1591,7 @@ bmac_proc_info(char *buffer, char **start, off_t offset, int length)
}
#endif

static int bmac_remove(struct macio_dev *mdev)
static void bmac_remove(struct macio_dev *mdev)
{
struct net_device *dev = macio_get_drvdata(mdev);
struct bmac_data *bp = netdev_priv(dev);
Expand All @@ -1609,8 +1609,6 @@ static int bmac_remove(struct macio_dev *mdev)
macio_release_resources(mdev);

free_netdev(dev);

return 0;
}

static const struct of_device_id bmac_match[] =
Expand Down
4 changes: 1 addition & 3 deletions drivers/net/ethernet/apple/mace.c
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ static int mace_probe(struct macio_dev *mdev, const struct of_device_id *match)
return rc;
}

static int mace_remove(struct macio_dev *mdev)
static void mace_remove(struct macio_dev *mdev)
{
struct net_device *dev = macio_get_drvdata(mdev);
struct mace_data *mp;
Expand All @@ -296,8 +296,6 @@ static int mace_remove(struct macio_dev *mdev)
free_netdev(dev);

macio_release_resources(mdev);

return 0;
}

static void dbdma_reset(volatile struct dbdma_regs __iomem *dma)
Expand Down
5 changes: 1 addition & 4 deletions drivers/scsi/mac53c94.c
Original file line number Diff line number Diff line change
Expand Up @@ -508,7 +508,7 @@ static int mac53c94_probe(struct macio_dev *mdev, const struct of_device_id *mat
return rc;
}

static int mac53c94_remove(struct macio_dev *mdev)
static void mac53c94_remove(struct macio_dev *mdev)
{
struct fsc_state *fp = (struct fsc_state *)macio_get_drvdata(mdev);
struct Scsi_Host *host = fp->host;
Expand All @@ -526,11 +526,8 @@ static int mac53c94_remove(struct macio_dev *mdev)
scsi_host_put(host);

macio_release_resources(mdev);

return 0;
}


static struct of_device_id mac53c94_match[] =
{
{
Expand Down
5 changes: 1 addition & 4 deletions drivers/scsi/mesh.c
Original file line number Diff line number Diff line change
Expand Up @@ -1986,7 +1986,7 @@ static int mesh_probe(struct macio_dev *mdev, const struct of_device_id *match)
return -ENODEV;
}

static int mesh_remove(struct macio_dev *mdev)
static void mesh_remove(struct macio_dev *mdev)
{
struct mesh_state *ms = (struct mesh_state *)macio_get_drvdata(mdev);
struct Scsi_Host *mesh_host = ms->host;
Expand All @@ -2013,11 +2013,8 @@ static int mesh_remove(struct macio_dev *mdev)
macio_release_resources(mdev);

scsi_host_put(mesh_host);

return 0;
}


static struct of_device_id mesh_match[] =
{
{
Expand Down
7 changes: 2 additions & 5 deletions drivers/tty/serial/pmac_zilog.c
Original file line number Diff line number Diff line change
Expand Up @@ -1507,12 +1507,12 @@ static int pmz_attach(struct macio_dev *mdev, const struct of_device_id *match)
* That one should not be called, macio isn't really a hotswap device,
* we don't expect one of those serial ports to go away...
*/
static int pmz_detach(struct macio_dev *mdev)
static void pmz_detach(struct macio_dev *mdev)
{
struct uart_pmac_port *uap = dev_get_drvdata(&mdev->ofdev.dev);

if (!uap)
return -ENODEV;
return;

uart_remove_one_port(&pmz_uart_reg, &uap->port);

Expand All @@ -1523,11 +1523,8 @@ static int pmz_detach(struct macio_dev *mdev)
dev_set_drvdata(&mdev->ofdev.dev, NULL);
uap->dev = NULL;
uap->port.dev = NULL;

return 0;
}


static int pmz_suspend(struct macio_dev *mdev, pm_message_t pm_state)
{
struct uart_pmac_port *uap = dev_get_drvdata(&mdev->ofdev.dev);
Expand Down
4 changes: 1 addition & 3 deletions sound/aoa/soundbus/i2sbus/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -365,15 +365,13 @@ static int i2sbus_probe(struct macio_dev* dev, const struct of_device_id *match)
return 0;
}

static int i2sbus_remove(struct macio_dev* dev)
static void i2sbus_remove(struct macio_dev *dev)
{
struct i2sbus_control *control = dev_get_drvdata(&dev->ofdev.dev);
struct i2sbus_dev *i2sdev, *tmp;

list_for_each_entry_safe(i2sdev, tmp, &control->list, item)
soundbus_remove_one(&i2sdev->sound);

return 0;
}

#ifdef CONFIG_PM
Expand Down

0 comments on commit d5bdfb0

Please sign in to comment.